| Has Downloads | Has Images | Snippet | Data | Data Types | C# | .NET | ASP.NET | Math | Statistics |
DownloadsRandom Number Generator - 22.5 KB - ASP.NET 1.1 Solution - Generate Uniform Random Numbers for various data types including DateTime and TimeSpan |
SummaryHow can I generate my own random number sets?
We have an online tool that will allow you to create up to 10000 random numbers at a time of various data types including:
- Boolean
- Int16
- Int32 (Integer)
- Int64
- Float (single precision)
- Double (double precision)
- DateTime
- Time Span
Download the solution at the top of this article for all the code.
Go here for more on my RandomProvider class which is used to generate all the random numbers. |
Screen shot of Random Number Generator in the download above |
Copy and Paste CleanlyNote that with the online tool or the download the random numbers are provided within <pre></pre> tags so you can easily copy and paste them into your favorite text editor or Excel without a bunch of html markup in the way. |
Gaussian (Normal) and Exponential Distributions Also AvailableThe RandomProvider class in the download also provides gaussian and exponentially distributed random numbers. One of these days I'll get around to adding it to the demo. |
|