Roll: Difference between revisions

Jump to navigation Jump to search
Miraheze>Marshall
(Created page with "Roll (?) is a monadic scalar function which returns random or pseudo-random numbers. Each scalar in the argument must be a non-negative integer. If it is a positiv...")
 
Miraheze>Marshall
No edit summary
Line 1: Line 1:
Roll (?) is a [[monadic]] [[scalar function]] which returns random or pseudo-random numbers. Each [[scalar]] in the argument must be a non-negative integer. If it is a positive number <source class=apl inline>n</source>, then Roll chooses one of the first <source class=apl inline>n</source> [[Index|indices]], and if it is zero, then Roll chooses a floating-point number between 0 and 1.
{{Primitive|?|Roll}} is a [[monadic]] [[scalar function]] which returns random or pseudo-random numbers. Each [[scalar]] in the argument must be a non-negative integer. If it is a positive number <source class=apl inline>n</source>, then Roll chooses one of the first <source class=apl inline>n</source> [[Index|indices]], and if it is zero, then Roll chooses a floating-point number between 0 and 1.


== Examples ==
== Examples ==
Retrieved from ‘https://aplwiki.com/wiki/Roll