Hi,
I have this script:
$randomID = rand(0,9999999999999999); // one '0' to sixteen '9's
while (strlen($randomID) < 16) {
$randomID = $randomID.'0';
}
// 1466843541 becomes 1466843541000000
...which generates a random number between 0 and 9999999999999999, the while loop then adds zeros to the end until its length is at 16, but I want the zeros to be randomly distributed throughout the string, and not just placed on the end. How would I go about doing this?
Thanks
Ste