Home > Back-end >  After a few C take random Numbers, they don't random
After a few C take random Numbers, they don't random

Time:09-25


You can see, all is the same

CodePudding user response:

#include
#include
#include
#include

CHAR ranbom ()//take random letters and number
{
char c;
//c='F';
Srand ((int) the rand ());
C=(char) (' 0 '+ rand () % (' z' - '0'));
KdPrint ((" random number % c, c));
Return the c;
}

CodePudding user response:

Srand ((int) time (NULL));
  • Related