Post Reply 
Numworks - strange random numbers
03-04-2023, 05:10 PM
Post: #1
Numworks - strange random numbers
Hi,

playing around with the latest Numworks app on Android, I noticed a strange behavior of the random() function.

When tested with many pairs of random numbers between 0 and 1, min(random#, random#) should converge to 1/3. And max(random#, random#) to 2/3. However, the Numworks app delivers ~1/2 for both min() and max() instead.

My HP Prime confirms the expected results ~1/3 and ~2/3 with its random numbers.

Code:
sum(k, 1, 10000, min({random(), random()})) / 10000

Am I doing something wrong? What do you get on the real Numworks calculator?


P.S. kind of wired is too, that 10001 steps are the maximum for Sum()


Attached File(s) Thumbnail(s)
   
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Numworks - strange random numbers - LowTech - 03-04-2023 05:10 PM



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