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.
The upper bound is not inclusive, so.... The 2nd change must take place to match the description.
https://stackoverflow.com/questions/5063269/c-sharp-random-next-never-returns-the-upper-bound
Random tests are fine - were made upon specific measurement. Not going to change it according to your suggestion.
Removed System.Linq - btw, this is arbitrary decission but don't want to waste time for argue. The range for random test is correct - not gonna change it.
Random tests should be generated as such: (use 51, 21 and 11 as the upper bound since Python's
randint
upper bound is inclusive whilst C# is exclusive)using System
should be in initial solution setup to ease debuggingshould be
using System.Linq;
should be removed from initial solution setupshould be
int l = rnd.Next(2, 51);
c# translation
sure it can - firstly multiply by mile equivalent and then divide
it can be done without casting, but it doesn't matter that much
it is required as
int / int = int
. yes, you cancast
to double in a different way but this is the way i like most* 1.0
is not requiredC# translation
c# translation
F#: Missing random tests
Loading more items...