11 C:\Dev-Cpp\Untitled1.cpp
[Warning] assignment to `int' from `double'
<code>
#include <iostream.h>
#include <stdlib.h>
#include <time.h>
int main()
{
int i;
i=rand() / (double)RAND_MAX * 12;
int thetime=time(NULL);
srand(thetime);
cout<<i;
return 0;
}
</code>
What is wrong with that ?