It finally happened

I just tried it and here is my result

https://pastebin.com/kbGH33mt

12693 attempts to get it.

So I'm pretty unlucky!

JavaScript:
function generateNumber() {
  // Generate a random number between 1 and 9999 (inclusive)
  return Math.floor(Math.random() * 9999) + 1;
}

function playGame() {
  let targetNumber = 1234;
  let guess;

  while (guess !== targetNumber) {
    guess = generateNumber();
    console.log("Your guess:", guess);
  }

  console.log("Congratulations! You guessed the number:", guess);
}

playGame();


Should've known better than to cheat a friend
And waste the chance that I've been given
So I'm never gonna dance again
The way I danced with you
 
not even a million
It takes me around 8 minutes to place a medium-length review.

Placing 1 million reviews would take me 8,000,000 minutes or 133,333 hours, if I'd work 12 hours a day doing nothing else than placing these reviews then it would take me 11,111 days or 30.4 years to place them all (considering I take no days off)
 
It takes me around 8 minutes to place a medium-length review.

Placing 1 million reviews would take me 8,000,000 minutes or 133,333 hours, if I'd work 12 hours a day doing nothing else than placing these reviews then it would take me 11,111 days or 30.4 years to place them all (considering I take no days off)
A life worth living. :rolleyes:
 
Back
Top