Skip to content

Instantly share code, notes, and snippets.

@kaworun
Created February 2, 2013 11:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kaworun/4696947 to your computer and use it in GitHub Desktop.
Save kaworun/4696947 to your computer and use it in GitHub Desktop.
Lua でおみくじ。
function omikuzi()
t = {"大吉","中吉","小吉", "吉", "凶", "大凶"}
i = math.random(#t)
print(t[i])
end
omikuzi()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment