Does srand() reproduce results between iOS devices?

28 Views Asked by At

I want to shuffle a hard-coded list of values, and be able to get the same result across devices. So, I thought that instead of sending the shuffled list's values, send only a number to initialize rand().

Would it work? Do srand() and rand() work the same across devices (including the simulator?)

0

There are 0 best solutions below