Mercurial > repo
view bin/rng @ 11137:e5f20b9a7f52
<oerjan> learn The degeneration is the generation that watches the Ellen DeGeneres show. See also degenerate.
author | HackBot |
---|---|
date | Fri, 28 Jul 2017 01:39:23 +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