C# Class Universe.Framework.Utilities.ThreadSafeRandom

A thread-safe Random since the .NET version is not. See http://msdn.microsoft.com/en-us/library/system.random%28v=vs.100%29.aspx
Inheritance: System.Random
显示文件 Open project: Virtual-Universe/Virtual-Universe

Public Methods

Method Description
Next ( ) : int
Next ( int maxValue ) : int
Next ( int minValue, int maxValue ) : int
NextBytes ( byte buffer ) : void
NextDouble ( ) : double
ThreadSafeRandom ( ) : System
ThreadSafeRandom ( int seed ) : System

Method Details

Next() public method

public Next ( ) : int
return int

Next() public method

public Next ( int maxValue ) : int
maxValue int
return int

Next() public method

public Next ( int minValue, int maxValue ) : int
minValue int
maxValue int
return int

NextBytes() public method

public NextBytes ( byte buffer ) : void
buffer byte
return void

NextDouble() public method

public NextDouble ( ) : double
return double

ThreadSafeRandom() public method

public ThreadSafeRandom ( ) : System
return System

ThreadSafeRandom() public method

public ThreadSafeRandom ( int seed ) : System
seed int
return System