Advertisement
CaptainSpaceCat

Hexadecimal Generator

Jul 16th, 2016
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.20 KB | None | 0 0
  1. local chars = {"0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f"}
  2.  
  3. local output = ""
  4. for i = 1, 6 do
  5.   output = output .. chars[math.random(1, #chars)]
  6. end
  7.  
  8. print(output)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement