View Full Version : Predictable array shuffle
09-14-2005, 02:52 AM
How would I get the function shuffle() to always "randomize" the array in a predictable manner? In other words, given the exact same information how would I get it to shuffle the array in exactly the same way?
09-14-2005, 03:40 AM
I am thinking this is the answer to my problem, but am unsure.
What I need is to predictably shuffle the array which contains a string broken into pieces by spaces.
$array = explode(' ', $string);
Will the above provide a predictable shuffling at all times? This is easy enough to test but I want to be certain.
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.