Untitled
unknown
plain_text
2 years ago
573 B
24
Indexable
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);
}
}
Editor is loading...