Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
JS :
this is very unlikely to get approved, however; there is no check for actually calculating anything by MC method
a check for using the MC method would be much harder to write than this kata, which is a problem with a lot of white kata with interesting ideas, the test suites are harder than the solutions for the authors to write
Nice kata, I find the monte carlo method really interesting.
However, you should check that ...
1º People doesn't just return Math.PI, or a single value within the range 3 - 3.2
2º The returned values are random.
What does "n" represent? And don't we need two numbers as input: The total number of throws and the number of throws that landed inside the circle?