Posts by Eduardo Remião • 1 point
1 post
-
-1
votes2
answers543
viewsQ: How to generate random numbers without rethinking in Java?
Something similar to the code below. Numbers in the Random range that do not repeat public void sorteiaCartelaB() { for (int i=0; i < b.length; i++) { b[i] = (int)(Math.random() * 60 + 1); for…