Assuming I wanted to create pairs of numbers, i.e. (0, 16), for which the first number is predetermined and the second is selected at random. I am going to continually draw random integers between 0 and 99 to fulfill the latter end of the pair 100 times, which means my last pair would be something like (99, 53). I can't seem to be able to prevent some issues. I want to make it impossible for the rand function to draw the number I am picking for, i.e. (1,1). Also, I am considering the pair (1, 23) logically equivalent to (23, 1), so when I am drawing for the pair (23, ??), I don't want the second digit to be 1, therefore leaving only unique pairs. Any help/advice appreciated