changeset 1157:43e48f410016

<GreyKnight> mv rng*dl* rng
author HackBot
date Fri, 14 Dec 2012 23:26:57 +0000
parents 4808f1da5185
children c096bb536bb2
files rng rng?dl=1
diffstat 2 files changed, 12 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rng	Fri Dec 14 23:26:57 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
--- a/rng?dl=1	Fri Dec 14 23:26:22 2012 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,12 +0,0 @@
-#!/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