playMaker

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

mutoit

  • Playmaker Newbie
  • *
  • Posts: 21
    • View Profile
random int[SOLVED]
« 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
« Last Edit: February 20, 2018, 11:08:03 PM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14328
  • Official Playmaker Support
    • View Profile
Re: random int
« Reply #1 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

mutoit

  • Playmaker Newbie
  • *
  • Posts: 21
    • View Profile
Re: random int
« Reply #2 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.