Commits

Author Commit Message Labels Comments Date
Craig Phillips
Merge
Craig Phillips
Added BetterRandom.cs. A class that implements a random number generator that is based off the Windows "Next Generation" cryptographically secure random number generator. It inherits from the base Random class, so can be used as a "drop-in" replacement for the built-in .NET System.Security.Random class, but providing a superior quality of random numbers.
Craig Phillips
Added NonRepeatingRandom.cs class which will allow generating random integer numbers between two values and will ensure that no number is repeated until the entire amount of random numbers available has been exhausted. Note this isn't truly random as the sequence will eventually repeat and generate the same "random" numbers in the same order, but this class has it's uses where a finite amount of random numbers is required, that amount is less than the amount available, and the random numbers need to be unique.
Craig Phillips
Added RandomString.cs which generates random strings of specified length and also generates Hashes of strings (either from a specified string or a random string). Useful when you just need some random strings!
Craig Phillips
First commit of a number of useful classes and code snippets.