fork download
  1. class giveYourHopesUp {
  2. public static double rand = Math.random();
  3.  
  4. public static void main(String[] args) {
  5. if (rand >= 0.50) {
  6. System.out.println("Give up.");
  7. } else {
  8. System.out.println("It's not over yet!");
  9. }
  10. }
  11. }
Success #stdin #stdout 0.1s 320576KB
stdin
Standard input is empty
stdout
It's not over yet!