How to create in Android Java a random number between min and max excluding some numbers that fall between min and max.?
I have three vars, each is a random number between 1-100. I was able to do the random number using the math.rand() but I am trying to make sure that the three numbers do not match. I did a work around using while and if statements, but I was looking to see if there is a one line of command to do this, so that I can put it right under th activity class so that it's public var. and in that area (activity) I can't use while and if statements, I only can in onCreate due to the void or something.
Thank you in advance for your help, and will vote for any help or idea that will lead to finding any info about this.