Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Arrays;
- import java.util.Random;
- public class Main {
- public static void main(String[] args) {
- Random rand = new Random();
- int[] num = new int[10];
- for( int x = 0; x < num.length; x++){
- num[x] = rand.nextInt(100)+1;
- System.out.println("Slot "+ x + " contains " + num[x]);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement