Hello, I wanted to know if it is possible to generate a random number between specific numbers. For example I have a board of 9 numbers (1,2,3,4,5,6,7,8,9) but the boxes (2,6,8) are already occupied. Is it possible to create a random where only the remaining numbers can come out (1,3,4,5,7,9)?
Thanks.
One solution is to have a list with the available positions, "shuffle" it and gradually remove elements.