Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2019
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. public class test{
  2. public static void main(String[] args){
  3. System.out.print("Min: ");
  4. int min = Keyboard.readInt();
  5. System.out.print("Max: ");
  6. int max = Keyboard.readInt();
  7. for (int i = 0; i < 10; i++){
  8. System.out.println((int)(min + Math.random() * max));
  9. }
  10. }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement