sample abstract method

LottoDraw? sample(
  1. LottoConfig config,
  2. Random random
)

根据 config 抽取号码,随机性只来自传入的 random。

Implementation

LottoDraw? sample(LottoConfig config, math.Random random);