view bin/rng @ 8021:f5db21202980

<shachaf> le/rn lem/Stanis\xc5\x82aw Lem was a Polish logician who discovered the law of excluded middle.
author HackBot
date Wed, 11 May 2016 03:31:53 +0000
parents c096bb536bb2
children
line wrap: on
line source

#!/usr/bin/env lua

math.randomseed(os.time())
W={}
for i,a in ipairs(arg) do
   for w in a:gmatch("[^%s]+") do
      table.insert(W, w)
   end
end
if #W>0 then
   print(W[math.random(#W)])
end