I have an array that has values like 1, 5, 6, 9, 11, 45, 56, etc. What I'm trying to do is a random value, maybe 6. Then I want to select a random value, excluding 6 (so there are no doubles). Then a random value, excluding the last two, is all inside the array. Any help? I try to do this without cycles while, but if they are necessary, let it be so.
source
share