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