Exclude data from $urandom_range

In reply to dave_59:

Hello,

How to randomize the value from an array excluded the one already randomized before.

for example, the content in the array is from 1 to 100.
and first time we randomize from 1 to 100 and get 53.
and second time we still randomize from 1 to 100 but we don’t want 53 anymore. it likes that we randomize from 1 to 52 and 54 to 100. (let it say we get 23)
and third time we don’t want 23 or 53 anymore…

May I know what’s the easiest way to implement it ?

Thank you