Hi,
I have a script that can select a number of random records to display but what im after is a snippet of code on the first selection will choose a random record, but on the second selection will again choose a random record, but will discount the record that has already been picked. Basically so the same record cant be displayed twice.
I hope that makes sense.
What i was thinking may be a solution would be if i could select 10 random records, then choose 3 rows from that 10?!!?!?!?
if you can, a snippet would be fantastic too.
Many thanks
I have a script that can select a number of random records to display but what im after is a snippet of code on the first selection will choose a random record, but on the second selection will again choose a random record, but will discount the record that has already been picked. Basically so the same record cant be displayed twice.
I hope that makes sense.
What i was thinking may be a solution would be if i could select 10 random records, then choose 3 rows from that 10?!!?!?!?
if you can, a snippet would be fantastic too.
Many thanks
Comment