Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Probability ¶
Probability 小于prob的概率, prob is in the range [0,1000)
func Read ¶
func Read(b []byte)
Read is a helper function that calls rr.Read on b. It always fills b completely.
func Shuffle ¶
Shuffle pseudo-randomizes the order of elements.
n: is the number of elements. Shuffle panics if n < 0. swap: swaps the elements with indexes i and j.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.