Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class LottoNumbers{
- public static void main(String []args){
- int first = (int)(Math.random()*59+1);
- int second = (int)(Math.random()*59+1);
- int third = (int)(Math.random()*59+1);
- int fourth = (int)(Math.random()*59+1);
- int fifth = (int)(Math.random()*59+1);
- int PB = (int)(Math.random()*35+1);
- System.out.println(first + "-" + second + "-" + third + "-" + fourth + "-" + fifth + "- PB -" + PB);
- System.out.println("GOOD LUCK!");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement