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