6 kyu

Don't rely on luck.

6,934 of 12,284JoshBrodieNZ

Description:

The test fixture I use for this kata is pre-populated.

It will compare your guess to a random number generated using:

(Kernel::rand() * 100 + 1).floor
Math.floor(Math.random() * 100 + 1)
randint(1,100)
rand(1, 100)
new Random().Next(1, 100 + 1);

You can pass by relying on luck or skill but try not to rely on luck.

"The power to define the situation is the ultimate power." - Jerry Rubin

Good luck!

Games
Puzzles

More By Author:

Check out these other kata created by JoshBrodieNZ

Stats:

CreatedOct 24, 2013
PublishedOct 24, 2013
Warriors Trained28634
Total Skips6339
Total Code Submissions236843
Total Times Completed12284
Ruby Completions1655
JavaScript Completions6934
CoffeeScript Completions324
Python Completions3435
PHP Completions593
C# Completions106
Total Stars365
% of votes with a positive feedback rating80% of 1279
Total "Very Satisfied" Votes905
Total "Somewhat Satisfied" Votes231
Total "Not Satisfied" Votes143
Ad
Contributors
  • JoshBrodieNZ Avatar
  • jhoffner Avatar
  • GiacomoSorbi Avatar
  • Voile Avatar
  • ocReaper Avatar
  • hobovsky Avatar
  • yLaWy Avatar
  • NikCSharp Avatar
  • 4500zenja1 Avatar
Ad