aiscript icon indicating copy to clipboard operation
aiscript copied to clipboard

乱数系関数の提案

Open salano-ym opened this issue 9 months ago • 17 comments

  • [ ] Rand:choice(a: arr<value>, rand?: fn): value 配列からランダムに1個取り出す
  • [ ] Rand:choices(a: arr<value>, count: num, rand?: fn): arr<value> 配列からランダムにcount個取り出す(重複有)
  • [ ] Rand:sample(a: arr<value>, count: num, rand?: fn): arr<value> 配列からランダムにcount個取り出す(重複無)
  • [ ] Rand:shuffle(a: arr<value>, rand?: fn): null 配列をシャッフルする

salano-ym avatar May 20 '24 11:05 salano-ym