Pick random element: Difference between revisions
Content deleted Content added
Add Nimrod |
|||
Line 452:
let ls = @["foo", "bar", "baz"]
echo ls.random()
var xs: array[10..14, string]
for i in 10..14:
xs[i] = "foo: " & $i
echo xs.random()</lang>
=={{header|Objeck}}==
|