I want to generate a set of random numbers at one go that falls between a range of integers. For example; I want to generate 3 numbers at once between 1 and 10. How do I do it?
Thanks in advance,
Use [java.util.Random|http://java.sun.com/javase/6/docs/api/java/util/Random.html]. One way to generate random selections without duplication is to think about poker: shuffle the deck and draw from it: