Untitled

mail@pastecode.io avatarunknown
plain_text
23 days ago
573 B
12
Indexable
Never
public class Main {
    public static int rand50() {
        return helper() & helper();
    }

    public static int helper() {
        return rand50();
    }

    public static int rand75() {
        while (true) {
            int bit1 = rand50();
            int bit2 = rand50();
            int bit3 = rand50();

            int result = (bit1 | bit2 | bit3);

            if (result == 1) {
                return 1;
            }
        }
    }

    public static void main(String[] args) {
        int result = rand75();
        System.out.println(result);
    }
}