Logic Machine Forum
math.random() allways retuns 0.7942 - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: math.random() allways retuns 0.7942 (/showthread.php?tid=4554)



math.random() allways retuns 0.7942 - kike - 03.02.2023

Hi, 

I noticed that when I use the math.random() with out arguments returns allways the same value, if arguments are used return the maximun.

example: 

log(math.random())


returns:

* number: 0.794206292431241

what I am doing wrong?

Thanks!!


RE: math.random() allways retuns 0.7942 - admin - 03.02.2023

See this: https://forum.logicmachine.net/showthread.php?tid=2052


RE: math.random() allways retuns 0.7942 - kike - 03.02.2023

(03.02.2023, 11:32)admin Wrote: See this: https://forum.logicmachine.net/showthread.php?tid=2052

Thanks! It works!