Thread: Generate random
View Single Post
Old 28/03/2019, 11:11 PM   #2
TokicMajstor
Big Clucker
 
TokicMajstor's Avatar
 
Join Date: Oct 2018
Location: Bosnia And Herzegovina
Posts: 177
Reputation: 1
Default Re: Generate random

Code:
new RandomLetters[5][2]=
{
    "a","b","c","d","e"//..........
}



new code[20];
code[0] = random(RandomLetters[5]);
code[1] = random(9);
This will make first character of the code to random letter (you need to add all the alphabet to letters), and second character to random number from 0 to 9.

Iam not sure is this all OK, so send me errors or problems
__________________


If Iam better than you = you're noob
If you're better than me = you're cheater
If everyone is better than me = I have lags
#Logic
TokicMajstor is offline   Reply With Quote