Pick random element: Difference between revisions
Content deleted Content added
m →{{header|REXX}}: formatting |
|||
Line 402:
<lang ruby>irb(main):001:0> %w(north east south west).choice
=> "south"</lang>
=={{header|Run BASIC}}==
<lang runbasic>list$ = "a,b,c,d,e,f,g,h,i,j"
letter = int(rnd( 1) * 10)
print "Selected letter:"; word$(list$,letter,",")</lang>
=={{header|Seed7}}==
|