grouping

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateGroupedRandomSeqIterator

func GenerateGroupedRandomSeqIterator(p parameter) func() (string, error)

n個の連番をランダムに並び替えた配列をg個のグループに分けて、各グループの要素を区切り文字で分割された文字列にしたイテレータを返却する

func NewParameter

func NewParameter(n int, g int, delimiter string) (parameter, error)

パラメータを生成する唯一の手段 パラメータの制約を満たさない場合はエラーを返却する

引数:

  • n: 生成する連番の最大値
  • g: 生成するグループの数
  • delimiter: 区切り文字

Types

This section is empty.

Jump to

Keyboard shortcuts

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