Hi All,
I have a list of records which each have an ID. I need to add a random selection of these into an array. The size of the selection is determined by 5% of the total amount of records.
I've managed to do this by generating a random number between 1 and the total amount of records, but I'm struggling to make sure each value is unique.
Is there a better way of doing this?
Thanks,
I have a list of records which each have an ID. I need to add a random selection of these into an array. The size of the selection is determined by 5% of the total amount of records.
I've managed to do this by generating a random number between 1 and the total amount of records, but I'm struggling to make sure each value is unique.
Is there a better way of doing this?
Thanks,