#include
#include
#include
int main ()
{
/* initialize random generator */
srand ( time(NULL) );
/* generate random numbers */
printf ("A number between 0 and 50: %d\n", rand() % 50);
printf ("A number between 25 and 45: %d\n", rand() % 20 + 25);
return 0;
}