Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: mutoit on February 19, 2018, 06:23:03 PM

Title: random int[SOLVED]
Post by: mutoit on February 19, 2018, 06:23:03 PM
hi, i want to generate random value for my items but this function do a infinite loop...any way to get just 1 random value ?
Thz
Title: Re: random int
Post by: jeanfabre on February 20, 2018, 12:04:14 AM
Hi,

 What technic do you use to store your items?

what function are you referering to ?

Bye,

 |Jean
Title: Re: random int
Post by: mutoit on February 20, 2018, 01:42:02 AM
i m so noob, i just use variables to safe things....
the random int function.
I just saw that it is repeated, because it goes from the first state, to the state where the function is without stopping, in a loop.
I suppose that assigning this function to a state in which it only runs once, everything will be fine.