Quick question on random generate number..
DsAngel
Member Posts: 29
can random generate number like 0.1?
i try a few time to use random to generate num for exp:
-> Timer(random(0.25,0.9)second
That end up like 0 second every time..
Thanks!
i try a few time to use random to generate num for exp:
-> Timer(random(0.25,0.9)second
That end up like 0 second every time..
Thanks!
Comments
while random function only generates integers... you can make your expression: to obtain a real number...
===
as a developer you should use a lot of Display Text actors for showing what your code is doing ... what is the result of a random number event... what the X and Y of an actor is... what a gameAttribute state is... etc.
MH
Thanks for the tip! now learn new way to discover my mistakes!