random number 0 1 c code example
Example: how to generate random between 0 and 9 in c
#include
#include
int main()
{
int randomnumber;
srand(time(NULL));
randomnumber = rand() % 10;
printf("%d\n", randomnumber);
return 0;
}