is rand() is perdicatable in C++
- by singh
Hi
When i run below program i always get same values each time..Is rand is not a true random function.
int main()
{
while(1)
{
getch();
cout<<rand()<<endl;
}
}
In each run i am getting below values.
41
18467
6334
26500
19169
15724
......