Random hexadecimal generator

Run Settings
LanguageLua
Language Version
Run Command
local length = 64 local how_many = 5 local uppercase = false local useSpacing = false -- << toggle spacing between every 2 characters local characters = 'abcdef1234567890' local function gen(e) local randomized = "" for i = 1, e do local idx = math.random(#characters) randomized = randomized .. characters:sub(idx, idx) end if uppercase then randomized = string.upper(randomized) end if useSpacing then local spaced = {} for i = 1, #randomized, 2 do table.insert(spaced, randomized:sub(i, i+1)) end randomized = table.concat(spaced, " ") end return randomized end math.randomseed(os.time()) for i = 1, how_many do print(i .. ". " .. gen(length)) end
Editor Settings
Theme
Key bindings
Full width
Lines