Post Reply 
Casio calculator and Roll Two Dice in Random
08-22-2020, 03:24 PM
Post: #6
RE: Casio calculator and Roll Two Dice in Random
(08-22-2020 07:20 AM)Joe Horn Wrote:  RANDINT(2,1,6) is simpler.
Much better! The Prime functions catalog is like a maze.
So I correct my sentence: not “enough” functions, but “too much” functions Smile

Quote: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).
Nice observation.
rand(6,1,6) -> all integers from 1 to 6 in random order.
rand(10,1,6) -> Error. Invalid dimension.

Thibault - not collector but in love with the few HP models I own - Also musician : http://walruspark.co
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 - pinkman - 08-22-2020 03:24 PM



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