Initialising arc4random_uniform()

728 Views Asked by At

In c++ how do you use arc4random_uniform after initializing srand()? I'm not sure what I am doing but I initialized srand() as:

srand(time(NULL));

Then inside a for loop I have:

target = arc4random_uniform(workingArraySize);

However, I have an error saying arc4random_uniform is undefined and identifier not found. I am using Visual Studio.

0

There are 0 best solutions below