log
graph
tags
bookmarks
branches
changeset
browse
file
latest
diff
comparison
annotate
file log
raw
help
Mercurial
>
repo
comparison bin/rng @ 1158:
c096bb536bb2
Find changesets by keywords (author, files, the commit message), revision number or hash, or
revset expression
.
<GreyKnight> mv rng /hackenv/bin
author
HackBot
date
Fri, 14 Dec 2012 23:27:18 +0000
parents
children
comparison
equal
deleted
inserted
replaced
1157:43e48f410016
1158:c096bb536bb2
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