playMaker

Author Topic: How to use "Get Next Random INT" [SOLVED]  (Read 432 times)

rainexplorer

  • Junior Playmaker
  • **
  • Posts: 61
    • View Profile
How to use "Get Next Random INT" [SOLVED]
« on: December 23, 2017, 01:14:34 AM »
Hi,

anyone know how to use module "Get Next Random INT" from ecobrowser ?



because i have try create 6 states to get 6 unique numbers, but no luck because still get duplicate number....
« Last Edit: December 24, 2017, 06:53:25 PM by djaydino »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 3512
    • View Profile
    • jinxtergames
Re: How to use "Get Next Random INT"
« Reply #1 on: December 23, 2017, 06:08:34 AM »
Hi.

This is how you set this up :

On the 'int pool count' you can set a number and it will get numbers between 1 and the number that you have set.

On the 'int serie count' you can set how many times it needs to get a number.

On 'store next int' you need to set a variable to get the selected int.

On Reset you can set a bool variable and you can set that variable to true if you want to reset the action.

On 'loop event' you need to set a transition to a state (or group of states) that will lead back to the state where 'get random int' is.

On 'finished event' you need to set a transition to a state when you are done using the 'get random int'

Here is a gif showing how to set this up :


rainexplorer

  • Junior Playmaker
  • **
  • Posts: 61
    • View Profile
Re: How to use "Get Next Random INT"
« Reply #2 on: December 24, 2017, 05:35:33 PM »
Many Thanks, this is solved...  :)