Data update
This commit is contained in:
parent
796d366b97
commit
35bcdeebf8
504 changed files with 7045 additions and 610 deletions
|
|
@ -0,0 +1,7 @@
|
|||
random
|
||||
|
||||
mda(0) = {0,1,2,3,4,5,6,7,8,9}
|
||||
|
||||
print mda(rnd(10)-1)
|
||||
|
||||
HandleEvents
|
||||
1
Task/Pick-random-element/Icon/pick-random-element-2.icon
Normal file
1
Task/Pick-random-element/Icon/pick-random-element-2.icon
Normal file
|
|
@ -0,0 +1 @@
|
|||
(rand-pick (range 100))
|
||||
7
Task/Pick-random-element/Joy/pick-random-element.joy
Normal file
7
Task/Pick-random-element/Joy/pick-random-element.joy
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
DEFINE pick_random == dup size rand swap rem at.
|
||||
|
||||
(* initialize random number generator *)
|
||||
time 89 * clock + srand
|
||||
|
||||
["zero" "one" "two" "three" "four" "five" "six" "seven" "eight" "nine" "ten" "eleven" "twelve"]
|
||||
pick_random.
|
||||
Loading…
Add table
Add a link
Reference in a new issue