shufflealgorithm

package
v1.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 18, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ShuffleAlgorithm

func ShuffleAlgorithm(arr []string)

Fisher-Yates 洗牌算法,用于随机打乱数组,保证每个元素出现的概率相等 This function takes an array of strings as an argument and shuffles the elements in the array using the Fisher-Yates algorithm

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL