C# 클래스 MpcLib.Common.StochasticUtils.StaticRandom

Only for simulation use. Do not use for real runs.
파일 보기 프로젝트 열기: mahdiz/mpclib

공개 메소드들

메소드 설명
Init ( int seed ) : void
Next ( System.Numerics.BigInteger maxValue ) : System.Numerics.BigInteger

Returns a BigInteger random number between 0 (inclusive) and maxValue (exclusive). maxValue must be larger than int.MaxValue.

Next ( int minValue, int maxValue ) : int

Returns a random number within a specified range.

Next ( long min, long max ) : long

Returns a random number within a specified range.

NextDouble ( ) : double

Returns a random number between 0.0 and 1.0.

메소드 상세

Init() 공개 정적인 메소드

public static Init ( int seed ) : void
seed int
리턴 void

Next() 공개 정적인 메소드

Returns a BigInteger random number between 0 (inclusive) and maxValue (exclusive). maxValue must be larger than int.MaxValue.
public static Next ( System.Numerics.BigInteger maxValue ) : System.Numerics.BigInteger
maxValue System.Numerics.BigInteger
리턴 System.Numerics.BigInteger

Next() 공개 정적인 메소드

Returns a random number within a specified range.
public static Next ( int minValue, int maxValue ) : int
minValue int The inclusive lower bound of the random number returned.
maxValue int /// The exclusive upper bound of the random number returned. maxValue must be /// greater than or equal to minValue. ///
리턴 int

Next() 공개 정적인 메소드

Returns a random number within a specified range.
public static Next ( long min, long max ) : long
min long The inclusive lower bound.
max long The exclusive upper bound.
리턴 long

NextDouble() 공개 정적인 메소드

Returns a random number between 0.0 and 1.0.
public static NextDouble ( ) : double
리턴 double