#include <iostream.h>
#include <stdlib.h>
#include <string.h>
#include <conio.h>
int main()
{
int a;
a==rand(5);
cout << a << "\n";
system("PAUSE");
return 0;
}
I am in the first steps of creating a math question generator. Why is the outcome here always 575? Shouldn't it be random between 0 and 5?