title: How to create in Android Java a random number between min and max excluding some numbers that fall between min and max.?
body: <p>How to create in Android Java a random number between min and max excluding some numbers that fall between min and max.?</p>
  
  <p>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. </p>
  
  <p>Thank you in advance for your help, and will vote for any help or idea that will lead to finding any info about this. </p>