Pick random element: Difference between revisions

Content added Content deleted
(→‎{{header|Vlang}}: Rename "Vlang" in "V (Vlang)")
(→‎RPL: RPL entry)
Line 1,473: Line 1,473:
next
next
</syntaxhighlight>
</syntaxhighlight>

=={{header|RPL}}==
≪ DUP SIZE RAND * 1 + FLOOR GET ≫ ‘RANDGET’ STO
{{in}}
<pre>
{ Alpha Beta Gamma Delta } RANDGET
{ Alpha Beta Gamma Delta } RANDGET
{ Alpha Beta Gamma Delta } RANDGET
</pre>
{{out}}
<pre>
3: ‘Delta’
2: ‘Alpha’
1: ‘Beta’
</pre>


=={{header|Ruby}}==
=={{header|Ruby}}==