C# 클래스 Underscore.Utility.MathComponent

상속: IMathComponent
파일 보기 프로젝트 열기: konkked/Underscore.cs 1 사용 예제들

Private Properties

프로퍼티 타입 설명
Abs int
InternalIsUnique bool
Max int
Min int
UniqueId string

공개 메소드들

메소드 설명
MathComponent ( ) : System
Random ( ) : int

Generates a random positive integer

Random ( int max ) : int

Generates a random integer between 0 and max

Random ( int min, int max ) : int

Generates a random integer in specified range

UniqueId ( string prefix ) : string

Generates a unique id, optionally prefixed by a string

비공개 메소드들

메소드 설명
Abs ( int i ) : int
InternalIsUnique ( string uuid ) : bool
Max ( int x, int y ) : int
Min ( int x, int y ) : int
UniqueId ( ) : string

메소드 상세

MathComponent() 공개 메소드

public MathComponent ( ) : System
리턴 System

Random() 공개 메소드

Generates a random positive integer
public Random ( ) : int
리턴 int

Random() 공개 메소드

Generates a random integer between 0 and max
public Random ( int max ) : int
max int Max of range, exclusive. Must be greater than 0
리턴 int

Random() 공개 메소드

Generates a random integer in specified range
public Random ( int min, int max ) : int
min int Min possible value
max int Max possible value, exclusive
리턴 int

UniqueId() 공개 메소드

Generates a unique id, optionally prefixed by a string
public UniqueId ( string prefix ) : string
prefix string
리턴 string