Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
8
Task/Pick-random-element/BaCon/pick-random-element.bacon
Normal file
8
Task/Pick-random-element/BaCon/pick-random-element.bacon
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
' Pick random element
|
||||
OPTION BASE 1
|
||||
DECLARE words$[6]
|
||||
FOR i = 1 TO 6 : READ words$[i] : NEXT
|
||||
DATA "Alpha", "Beta", "Gamma", "Delta", "Epsilon", "Zeta"
|
||||
|
||||
element = RANDOM(6) + 1
|
||||
PRINT "Chose ", element, ": ", words$[element]
|
||||
Loading…
Add table
Add a link
Reference in a new issue