package
Version:
v1.0.5
Opens a new window with list of versions in this module.
Published: Nov 12, 2023
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func GenerateGroupedRandomSeqIterator(p parameter) func() (string, error)
n個の連番をランダムに並び替えた配列をg個のグループに分けて、各グループの要素を区切り文字で分割された文字列にしたイテレータを返却する
パラメータを生成する唯一の手段
パラメータの制約を満たさない場合はエラーを返却する
引数:
- n: 生成する連番の最大値
- g: 生成するグループの数
- delimiter: 区切り文字
Source Files
¶
Click to show internal directories.
Click to hide internal directories.