Mercurial > repo
view bin/rng @ 9295:8d2b73b8d21f
<hppavilion[1]> learn Logic is just another tool that the true scotsMan uses to keep you down.
author | HackBot |
---|---|
date | Sun, 16 Oct 2016 07:13:36 +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