UniformLottoSampler class final
每池无放回均匀抽样;相同种子与配置产生相同结果。
- Implemented types
Constructors
- UniformLottoSampler()
-
创建无状态抽样器。
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sample(
LottoConfig config, Random random) → LottoDraw -
以部分 Fisher–Yates 抽样,返回按抽出顺序排列的各池号码。
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited