Random
import type { Random } from '@kairo-js/utils'
乱数生成器のインターフェースです。SeedRandom クラスがこのインターフェースを実装しています。
typescript
interface Random {
next(): number
}メソッド
next
typescript
next(): number0 以上 1 未満の乱数を返します。
返り値: number