Purely
New Member
Posts: 16
ROBLOX Username: PurelyMystic
|
Post by Purely on May 5, 2017 21:46:44 GMT
WAIT I GOT IT EVEN SHORTA Chars: 105
p="";for i=1,6 do p=p..string.char(math.random(65,90))..string.char(math.random(97,99)).."#";end print(p)
|
|
|
Post by Josh on May 5, 2017 21:52:19 GMT
PurelyThink about whether you need the semicolons and how you can store functions as variables
|
|
Purely
New Member
Posts: 16
ROBLOX Username: PurelyMystic
|
Post by Purely on May 5, 2017 21:53:53 GMT
I am at a lost then lol.
|
|
|
Post by goulstem on May 5, 2017 21:55:07 GMT
we could go dis route tho :3
Lua, 76 chars - but there's no garauntee that each prerequisite will be met since it's completely random(but it will most likely have one of each).
m,p=math.random,""for i=1,m(12,24)do p=p..string.char(m(33,126))end print(p)
|
|
|
Post by Bit on May 5, 2017 22:00:46 GMT
Yes you can, 103.
p=""for i=1,25 do p=p..p.char(math.random(65,90))..p.char(math.random(97,99)).."#"end warn(p:sub(1,15))
|
|
|
Post by Josh on May 5, 2017 22:13:34 GMT
*hint* try shortening math.random
|
|
|
Post by Bit on May 6, 2017 2:17:08 GMT
Ah whatever. Shortening time. 87. r=math.random;p=""for i=1,25 do p=p..p.char(r(65,90))..p.char(r(97,99)).."#"end warn(p)
93 if you really wanna meet the len condition r=math.random;p=""for i=1,r(12,25) do p=p..p.char(r(65,90))..p.char(r(97,99)).."#"end warn(p) Both just shortening Purely's
|
|
|
Post by cntkillme on May 6, 2017 2:40:51 GMT
You never said each character had to be random. And people aren't making their punctuation character random which further makes me feel fine doing this:
"aB!"..math.random(0,9)
|
|
|
Post by Josh on May 6, 2017 10:19:49 GMT
You never said each character had to be random. And people aren't making their punctuation character random which further makes me feel fine doing this: "aB!"..math.random(0,9) Well it's your choice on how you approach it, but you need to make sure that the password's length is a random number from 12 to 24.
|
|
|
Post by cntkillme on May 6, 2017 10:57:32 GMT
aaaaaaaaaaaaaaaa r=math.random print(("aB!"):rep(r(3,7))..r(0,9))
|
|
|
Post by Josh on May 6, 2017 11:09:24 GMT
aaaaaaaaaaaaaaaa r=math.random print(("aB!"):rep(r(3,7))..r(0,9)) If the first randomly generated integer is 3, then the generated password will only be a length of 10.
|
|
|
Post by cntkillme on May 6, 2017 17:41:27 GMT
just make that a 5 it's not easy to code on a phone
|
|
|
Post by Bit on May 6, 2017 17:45:01 GMT
|
|
|
Post by systemise on May 6, 2017 17:49:38 GMT
aaaaaaaaaaaaaaaa r=math.random print(("aB!"):rep(r(3,7))..r(0,9)) roblock lua, 45 r=math.random warn(("aB!"):rep(r(5,7))..r(9)) :^)
|
|