Generate random
#2

Код:
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
Reply


Messages In This Thread
Generate random - by SymonClash - 28.03.2019, 20:44
Re: Generate random - by TokicMajstor - 28.03.2019, 23:11
Re: Generate random - by Crayder - 29.03.2019, 03:07
Re: Generate random - by TheToretto - 29.03.2019, 08:22
Re: Generate random - by SymonClash - 29.03.2019, 08:24
Re: Generate random - by bgedition - 29.03.2019, 16:45
Re: Generate random - by Crayder - 30.03.2019, 06:50
Re: Generate random - by Nero_3D - 30.03.2019, 12:00
Re: Generate random - by Crayder - 30.03.2019, 16:31

Forum Jump:


Users browsing this thread: 2 Guest(s)