Jan 13, 2025
10:25:24pm
SalmonOfCapistrano All-American
RE: You could also just be lazy and do this
Contest. Who can write the worst correct implementation? I'll take it a step further.

int myRandom() throws Exception {
int rand = random();
switch (rand) {
case 1:
return 0;
case 2:
return 1;
case 3:
return 0;
case 4:
return 1;
case 5:
return myRandom();
default:
throw new IllegalStateException("what the yewt?");
}
SalmonOfCapistrano
Previous username
Pedant
Bio page
SalmonOfCapistrano
Joined
Feb 1, 2012
Last login
Jan 16, 2025
Total posts
11,316 (81 FO)
Messages
Author
Time
Jan 13, 10:03pm
Jan 13, 10:03pm

Posting on CougarBoard

In order to post, you will need to either sign up or log in.