Post Reply 
Casio Scientific Calculator and Ran#
06-07-2023, 07:07 AM
Post: #1
Casio Scientific Calculator and Ran#
Just noticed that most of the Casio Scientific Calculator only give

3 decimal digits output from the Ran# function.

When I try to do the 6 digits Random number with this input

Ran# x 899999 + 10^5

Here is some of the random result with FIX 0 for 6 digits random number.

614799, 438400, 505900, 752499 and 435700

Notice that the last two digit will always have 99 and 00

----------------------------------------------------------------

To make this a rather better Random result I did this way.

Ran#^Ran# x 899999 +10^5

Here is the random result

611299, 621167, 304497, 997392, 395310 and 438358

Gamo
Find all posts by this user
Quote this message in a reply
06-07-2023, 08:57 AM
Post: #2
RE: Casio Scientific Calculator and Ran#
if ran# x ran#, the result is ranged from 0.000 to 0.998001 which does not cover fully from 0 to 0.99999

How about using this : ran# x 1000 + ran# x 10^6 ? This will cover fully from 0 to 999999

12C, 15C, 15cCE, 19Bii, 20S, 22S, 35S, 39Gii, 42S, 48G, 50G, 97
Find all posts by this user
Quote this message in a reply
06-07-2023, 10:41 AM
Post: #3
RE: Casio Scientific Calculator and Ran#
Thanks HKG

That one is really good input as

Ran# x 10^3 + Ran# x 10^6

Here is some of the result

464598, 764627, 949309, 651623 and 502449


Gamo
Find all posts by this user
Quote this message in a reply
06-07-2023, 12:08 PM
Post: #4
RE: Casio Scientific Calculator and Ran#
Usually on these older models, I just do Ran#+Ran#/1E3. Six digits are enough for whatever I'm doing with that old calculator. Smile (And if not, throw in another Ran# to get 9 digits).
Visit this user's website Find all posts by this user
Quote this message in a reply
06-09-2023, 03:42 PM
Post: #5
RE: Casio Scientific Calculator and Ran#
On a side note, unless I am mistaken random^random or random*random produce a different distribution than a uniform one.

The random*10^3 + random*^10^6 should be still a uniform distribution.

Wikis are great, Contribute :)
Find all posts by this user
Quote this message in a reply
Post Reply 




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