Pick random element: Difference between revisions

m
Move FutureBasic entry to correct location
(FutureBasic example added)
m (Move FutureBasic entry to correct location)
Line 769:
<syntaxhighlight lang="frink">a = ["one", "two", "three"]
println[random[a]]</syntaxhighlight>
 
=={{header|FutureBasic}}==
<syntaxhighlight lang="futurebasic">
random
 
mda(0) = {0,1,2,3,4,5,6,7,8,9}
 
print mda(rnd(10)-1)
 
HandleEvents
</syntaxhighlight>
 
=={{header|Gambas}}==
Line 782 ⟶ 793:
May
</pre>
 
=={{header|FutureBasic}}==
<syntaxhighlight lang="futurebasic">
random
 
mda(0) = {0,1,2,3,4,5,6,7,8,9}
 
print mda(rnd(10)-1)
 
HandleEvents
</syntaxhighlight>
 
=={{header|GAP}}==
408

edits