Advertisement
IanO-B

Untitled

Feb 18th, 2020
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. import java.util.Random;
  2. public class Main {
  3.  
  4. public static void main(String[] args) {
  5. int[] values;
  6. values = new int[10];
  7. Random rand_int1 = new Random();
  8.  
  9. for(int i = 0; i < values.length; i++){
  10. values [i] = rand_int1.nextInt(101);
  11. System.out.println(values[i]);
  12. }
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement