playMaker

Author Topic: random int[SOLVED]  (Read 1257 times)

mutoit

  • Playmaker Newbie
  • *
  • Posts: 25
random int[SOLVED]
« on: February 19, 2018, 08: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
« Last Edit: February 21, 2018, 01:08:03 AM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: random int
« Reply #1 on: February 20, 2018, 02:04:14 AM »
Hi,

 What technic do you use to store your items?

what function are you referering to ?

Bye,

 |Jean

mutoit

  • Playmaker Newbie
  • *
  • Posts: 25
Re: random int
« Reply #2 on: February 20, 2018, 03: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.