package
Version:
v1.1.15
Opens a new window with list of versions in this module.
Published: Jul 15, 2025
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func RandItemFromSlice[T any](slice []T) T
RandItemFromSlice 从给定的切片随机取一个值
func RandSliceFromSlice[T any](slice []T, num int, repeatable bool) []T
RandSliceFromSlice 从给定的切片随机截取一段切片
Source Files
¶
Click to show internal directories.
Click to hide internal directories.