@anonymous/

SameGruesomeLamp

Lua

No description

fork
loading
Files
  • main.lua
main.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
t = {"run", "hop", "dance", "skip", "leap", "bounce", "hug", "frolic", "potato", "tomato", "boom"}
tnum = #t
print(table.concat(t, ','))
for i = tnum, 1, -1
do
	rn = math.random(tnum)
	print(t[rn])
	table.insert(t, tnum, table.remove(t,rn))
	tnum = tnum -1
end

print("second run===============")
tnum = #t
for i = tnum, 1, -1
do
	rn = math.random(tnum)
	print(t[rn])
	table.insert(t, tnum, table.remove(t,rn))
	tnum = tnum -1
end

print("third run=================")
tnum = #t
for i = tnum, 1, -1
do
	rn = math.random(tnum)
	print(t[rn])
	table.insert(t, tnum, table.remove(t,rn))
	tnum = tnum -1
end