comparison bin/rng @ 5643:56dcce63901b

<tswett> revert
author HackBot
date Sun, 21 Jun 2015 02:47:59 +0000
parents c096bb536bb2
children
comparison
equal deleted inserted replaced
5642:987c834ab84d 5643:56dcce63901b
1 #!/usr/bin/env lua
2
3 math.randomseed(os.time())
4 W={}
5 for i,a in ipairs(arg) do
6 for w in a:gmatch("[^%s]+") do
7 table.insert(W, w)
8 end
9 end
10 if #W>0 then
11 print(W[math.random(#W)])
12 end