view bin/rng @ 11229:32f8f3418a02

<quintopia> le/rn Seventh Day Adventism//Seventh Day Adventism is an attempt to bugfix an off-by-one error in Anabaptism
author HackBot
date Sat, 28 Oct 2017 22:51:26 +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