Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SecureRandomElement ¶
SecureRandomElement 使用 crypto/rand 从任意切片或数组中安全随机返回一个元素
func SecureRandomInt ¶
func SecureRandomSampleUnique ¶
SecureRandomSampleUnique 从切片中随机选取 n 个 **不重复** 元素
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.