Advertisement
CaptainSpaceCat

Hexadecimal Generator

Jul 16th, 2016
100
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data Copied
Advertisement