view bin/rng @ 6282:5ed26e5ea046

<tswett> echo \'You are the great one. Nobody else will do this. You must do this.\' > evil/404
author HackBot
date Fri, 27 Nov 2015 01:26:46 +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