Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NoRepeatRand ¶
type NoRepeatRand struct { Index uint32 // 随机标号,标记还剩下多少个可选数 Seed uint32 // 随机种子 Count uint32 // 总数 // contains filtered or unexported fields }
快速不重复随机数 uint32 取值范围[0~4,294,967,295] 100,000,000 个数的内存开销约 400MB
func NewNoRepeatRandEx ¶
func NewNoRepeatRandEx(start, end, seed, skip uint32) *NoRepeatRand
[start,end] skip 略过多少个
Click to show internal directories.
Click to hide internal directories.