# HG changeset patch # User HackBot # Date 1355527582 0 # Node ID 4808f1da51853315b48c9da009f7f354e911e432 # Parent 84422df37870ad13ca7cd2b22917ec7507050197 fetch https://dl.dropbox.com/s/bxsata7guqrbql4/rng?dl=1 diff -r 84422df37870 -r 4808f1da5185 rng?dl=1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/rng?dl=1 Fri Dec 14 23:26:22 2012 +0000 @@ -0,0 +1,12 @@ +#!/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