Post Reply 
Casio calculator and Roll Two Dice in Random
08-22-2020, 07:20 AM
Post: #5
RE: Casio calculator and Roll Two Dice in Random
(08-21-2020 09:16 PM)pinkman Wrote:  The Prime has enough built-in functions, I suggest using RANDMAT:

Code:

RANDMAT(1,2,6)+1

Only works correctly in Home. Returns some 7's in CAS. Strange.

RANDINT(2,1,6) is simpler. Note that rand(2,1,6) in CAS seems the same at first glance, but the former allows repeats (pairs), whereas the latter does not (AKA selection without replacement).

<0|ΙΈ|0>
-Joe-
Visit this user's website 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 - Joe Horn - 08-22-2020 07:20 AM



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