Casio Scientific Calculator and Ran#
06-07-2023, 07:07 AM
Post: #1
 Gamo Senior Member Posts: 720 Joined: Dec 2016
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
06-07-2023, 08:57 AM
Post: #2
 HKG Junior Member Posts: 13 Joined: Apr 2015
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, 22S, 35S, 39Gii, 42S, 48G, 50G, 97
06-07-2023, 10:41 AM
Post: #3
 Gamo Senior Member Posts: 720 Joined: Dec 2016
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
06-07-2023, 12:08 PM
Post: #4
 Dave Britten Senior Member Posts: 2,237 Joined: Dec 2013
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. (And if not, throw in another Ran# to get 9 digits).
06-09-2023, 03:42 PM
Post: #5
 pier4r Senior Member Posts: 2,241 Joined: Nov 2014
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 :)
 « Next Oldest | Next Newest »

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