Random Integers, No Repeats
|
08-09-2023, 05:31 PM
(This post was last modified: 08-09-2023 05:34 PM by Joe Horn.)
Post: #12
|
|||
|
|||
RE: Random Integers, No Repeats
(08-09-2023 05:21 PM)roadrunner Wrote: srand(integer) initializes the rand() function Awesome! Thanks! Here's some more info about the rand(X,Y,Z) function from Bernard's documentation for XCAS: Bernard Wrote:The rand command can also choose elements without replacement. If you give rand three integer arguments, rand(p,n1,n2) then it will return p distinct random integers from n1 to n2. <0|ΙΈ|0> -Joe- |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: