import java.util.Random;
public class LottoHelper {
public static void main(String[] args) {
// Create a random number generator
Random picker = new Random();
int nextNum; // Number btn 1 and 50 to be chosen
System.out.println(); // skipline
for(int i = 0; i < 5; i++)
{
// nextInt() gives values between Integer.MIN_VALUE and Integer.MAX_VALUE
// Take abs value and then mod 50 to obtain a number
// between 0 and 49. Add 1 to get btn 1 and 50
nextNum = Math.abs(picker.nextInt()) % 50 + 1;
System.out.print(nextNum + ", ");
}
nextNum = Math.abs(picker.nextInt()) % 50 + 1;
System.out.println(nextNum);
System.out.println(); // skipline
}
}