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?)