Pick random element: Difference between revisions
Content deleted Content added
Line 406: | Line 406: | ||
=={{header|Run BASIC}}== |
=={{header|Run BASIC}}== |
||
<lang runbasic>list$ = "a,b,c,d,e,f,g,h,i,j" |
<lang runbasic>list$ = "a,b,c,d,e,f,g,h,i,j" |
||
letter = |
letter = rnd(1) * 10 |
||
print "Selected letter:"; word$(list$,letter,",")</lang> |
print "Selected letter:"; word$(list$,letter,",")</lang> |
||