Post Reply 
Casio calculator and Roll Two Dice in Random
08-21-2020, 11:53 AM
Post: #2
RE: Casio calculator and Roll Two Dice in Random
For calculator with only RAN#, we can still get an unbiased dice throws.
see Exact Discrete pseudo-Random Sampling thread

Here, we assume RAN# have range 0.000 to 0.999, or 1000 possibilities, all equally likely.

Method 1: treat each digits as a throw, but eliminate bad cases (outside 1 to 6)

RAN#: 0.846 0.479 0.035                        -> dice throws = 4 6 4 3 5       // eliminated 4 throws out of 9

Method 2: same idea, but with base 1000, so we need to remove 1000 mod 6 = 4 cases.
1 + 6 RAN#, dice throw = integer part, invalid throws = fractional parts > 0.995

1 + 6 RAN#: 1.492 6.4 5.32 4.444 2.236 -> dice throws = 1 6 5 4 2       // all valid throws
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Casio calculator and Roll Two Dice in Random - Albert Chan - 08-21-2020 11:53 AM



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