T
TGP Thought Meister
Need some help with an array problem.
I am pulling several rows from my database and placing them into an array
successfully but I want to be able to pull them randomly. I can't decide the
best way to proceed, whether to create another array with the DB ID's and
then run a check each time I generate a random number against this array? Or
should I delete the record from the array each time through with the random
number?
Any ideas?
I am pulling several rows from my database and placing them into an array
successfully but I want to be able to pull them randomly. I can't decide the
best way to proceed, whether to create another array with the DB ID's and
then run a check each time I generate a random number against this array? Or
should I delete the record from the array each time through with the random
number?
Any ideas?