June 2018 Update
This commit is contained in:
parent
ba8067c3b7
commit
22f33d4004
5278 changed files with 84726 additions and 14379 deletions
|
|
@ -1,3 +1,3 @@
|
|||
(1..6).roll; # return 1 random value in the range 1 through 6
|
||||
(1..6).roll(3); # return a list of 3 random values in the range 1 through 6
|
||||
(1..6).roll(*); # return a lazy infinite list of random values in the range 1 through 6
|
||||
say (1..6).roll; # return 1 random value in the range 1 through 6
|
||||
say (1..6).roll(3); # return a list of 3 random values in the range 1 through 6
|
||||
say (1..6).roll(*)[^100]; # return first 100 values from a lazy infinite list of random values in the range 1 through 6
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue