Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 1.13 KB

README.md

File metadata and controls

19 lines (15 loc) · 1.13 KB

ThreadSafeRandomizer ThreadSafeRandomizer

GitHub Workflow Status Nuget Nuget

An efficient thread-safe randomizer.

Installation

The recommended means is to use NuGet, but you could also download the source code from here.

Usage

Replace:

var random = new Random();
var myNum = random.Next();

With:

var myNum = ThreadSafeRandom.Instance.Next();