Advertisement
ZhenghaoZhu

Powerball

Jan 13th, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.47 KB | None | 0 0
  1. public class LottoNumbers{
  2.   public static void main(String []args){
  3.     int first = (int)(Math.random()*59+1);
  4.     int second = (int)(Math.random()*59+1);
  5.     int third = (int)(Math.random()*59+1);
  6.     int fourth = (int)(Math.random()*59+1);
  7.     int fifth = (int)(Math.random()*59+1);
  8.     int PB = (int)(Math.random()*35+1);
  9.     System.out.println(first + "-" + second + "-" + third + "-" + fourth + "-" + fifth + "- PB -" + PB);
  10.     System.out.println("GOOD LUCK!");
  11.   }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement