+ 1
Can we use 'rand()' to generate random characters??
i want to call random characters from a to c can i do so with the rand() function?
1 ответ
+ 3
char a='a'+rand()%26;
- random letter from English alphabet. Read a bit about the ASCII table.
i want to call random characters from a to c can i do so with the rand() function?