random number generator between 1 and 2 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;
}