[ / / / / / / / / / / / / / ] [ dir / cia / htg / ita / loomis / newbrit / poke / redtext / tav ]

/g/ - Technology

Only inane comments
Name
Email
Subject
Comment *
File
* = required field[▶ Show post options & limits]
Confused? See the FAQ.
Options
dicesidesmodifier
Password (For file and post deletion.)

Allowed file types:jpg, jpeg, gif, png, webm, mp4, pdf
Max filesize is 16 MB.
Max image dimensions are 15000 x 15000.
You may upload 5 per post.


File: f3d5875e1fe0a44⋯.gif (1.17 MB, 800x800, 1:1, 1498545135130.gif)

 No.5660

Alright tech fags I'm utterly retarded in lua, and I need a way to generate an 11 character long string of digits and lowercase and uppercase letters. Please advise.

 No.5713

>>5660

>being retarded in a retarded language

s ="" repeat s = s..math.char(math.random(255)) until string.len(s)==11


 No.6033

base62 = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"

function gen(len)

local s = ""

for x=1,len do

local n = math.random(62)

s = s .. base62.sub(n,n)

end

return s

end


 No.6044

>>5660

check the roblox wiki




[Return][Go to top][Catalog][Nerve Center][Cancer][Post a Reply]
Delete Post [ ]
[]
[ / / / / / / / / / / / / / ] [ dir / cia / htg / ita / loomis / newbrit / poke / redtext / tav ]