Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Random;
- public class Main {
- public static void main(String[] args) {
- int[] tablica = new int[6];
- Random r= new Random();
- for (int i = 0; i < 6; i++){
- Random r = new Random();
- tab[i]= r.nextInt(49)+1;
- tablica[i] = i + 1;
- }
- System.out.println(tablica[i]);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment