Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: rainexplorer on December 23, 2017, 03:14:34 AM

Title: How to use "Get Next Random INT" [SOLVED]
Post by: rainexplorer on December 23, 2017, 03:14:34 AM
Hi,

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

(https://i.imgur.com/Opc1GDj.png)

because i have try create 6 states to get 6 unique numbers, but no luck because still get duplicate number....
Title: Re: How to use "Get Next Random INT"
Post by: djaydino 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 :

(https://i.imgur.com/M3H55jY.gif)
Title: Re: How to use "Get Next Random INT"
Post by: rainexplorer on December 24, 2017, 07:35:33 PM
Many Thanks, this is solved...  :)
Title: Re: How to use "Get Next Random INT" [SOLVED]
Post by: stigma on March 15, 2024, 05:52:13 AM
Thank you, it helped me a lot 6 years later!