Pick random element: Difference between revisions
Content deleted Content added
Lua |
|||
Line 205:
</lang>
Selecting term 5 in the list, which was Peter
=={{header|Lua}}==
<lang lua>
math.randomseed(os.time())
local a = {1,2,3}
print(a[math.random(1,#a)])
</lang>
=={{header|Mathematica}}==
|