C# 클래스 ElectroChecker.Utils

파일 보기 프로젝트 열기: HackerDom/ructfe-2015

공개 메소드들

메소드 설명
AddVoteVector ( this first, int second ) : void
FindWinner ( int votes ) : int
GenRandomAlphaNumeric ( int minLen = 6, int plusRandomLen = 2 ) : string
GenRandomElectionName ( string prefix = "Election" ) : string
GenRandomVoteVector ( int vectorSize ) : int[]
GenRandomVoteVectors ( int vectorSize, int votersCount ) : IEnumerable
GenVoteVector ( int count, int winner ) : int[]
SumVoteVectors ( List votes ) : int[]

메소드 상세

AddVoteVector() 공개 정적인 메소드

public static AddVoteVector ( this first, int second ) : void
first this
second int
리턴 void

FindWinner() 공개 정적인 메소드

public static FindWinner ( int votes ) : int
votes int
리턴 int

GenRandomAlphaNumeric() 공개 정적인 메소드

public static GenRandomAlphaNumeric ( int minLen = 6, int plusRandomLen = 2 ) : string
minLen int
plusRandomLen int
리턴 string

GenRandomElectionName() 공개 정적인 메소드

public static GenRandomElectionName ( string prefix = "Election" ) : string
prefix string
리턴 string

GenRandomVoteVector() 공개 정적인 메소드

public static GenRandomVoteVector ( int vectorSize ) : int[]
vectorSize int
리턴 int[]

GenRandomVoteVectors() 공개 정적인 메소드

public static GenRandomVoteVectors ( int vectorSize, int votersCount ) : IEnumerable
vectorSize int
votersCount int
리턴 IEnumerable

GenVoteVector() 공개 정적인 메소드

public static GenVoteVector ( int count, int winner ) : int[]
count int
winner int
리턴 int[]

SumVoteVectors() 공개 정적인 메소드

public static SumVoteVectors ( List votes ) : int[]
votes List
리턴 int[]