playMaker

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

rainexplorer

  • Junior Playmaker
  • **
  • Posts: 65
How to use "Get Next Random INT" [SOLVED]
« on: December 23, 2017, 03: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, 08:53:25 PM by djaydino »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: How to use "Get Next Random INT"
« Reply #1 on: December 23, 2017, 08: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: 65
Re: How to use "Get Next Random INT"
« Reply #2 on: December 24, 2017, 07:35:33 PM »
Many Thanks, this is solved...  :)

stigma

  • Full Member
  • ***
  • Posts: 176
Re: How to use "Get Next Random INT" [SOLVED]
« Reply #3 on: March 15, 2024, 05:52:13 AM »
Thank you, it helped me a lot 6 years later!