random number in c between 0 and 7 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;
}