import java.util.Random;

public class WhileLoop {
    public static void main(String[] args) {
        Random random = new Random();

        int a = 1000;
        int b = 0;
        int c = random.nextInt(10);
        int d = random.nextInt(50);
        int sum1;
        int sum2;
        int sum3;
        int sum4;

        System.out.println(c);
        System.out.println(d);
        while(sum4>sum2) {
            sum1 = a + c;
            sum2 = sum1 + c;
            sum2++;
            System.out.println(sum2);

            sum3 = b + d;
            sum4 = sum3 + d;
            sum4++;
            System.out.println(sum4);
        }
    }
}
I have trouble understanding how to add a random number to a number 0-10 and to b the numbers 0-50 until the condition is met a = 1000; b = 0; the condition is b> a