Post Reply 
Numworks - strange random numbers
03-07-2023, 11:16 PM
Post: #11
RE: Numworks - strange random numbers
(03-07-2023 07:41 PM)Albert Chan Wrote:  
(03-07-2023 04:47 PM)toml_12953 Wrote:  When I print random()-random() I get a number. My OS version is 20.3.0.

I found this in NumWorks github fixed issue. However, the bug is not truly fixed.

> abs(random()-random())
-0.5887471884         // negative ?

> (random()-random())^2
-0.6283539792         // negative ?

Yup. I just upgraded to 20.4.0 and sometimes (random()-random())^2 still comes up negative. Imagine that. random can return imaginary numbers! Big Grin

Tom L
Cui bono?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Numworks - strange random numbers - toml_12953 - 03-07-2023 11:16 PM



User(s) browsing this thread: 1 Guest(s)