Advertisement
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) {
- Random rand = new Random();
- int[] number = new int[10];
- for (int x = 0; x <= 9; x++){
- number[x] = rand.nextInt((100)+1);
- System.out.println("slot " + x + " contains a " + number[x]);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement