Java – generate Random range of specific numbers without duplication of those numbers – how to?

You can fill an array with all values from 1 to 12 and then shuffle them (see e.g. Why does Collections.shuffle() fail for my array?)

Leave a Comment