@lucid-softworks/array-sample
v0.1.0
Published
Select one random array value with an injectable random source.
Maintainers
Readme
@lucid-softworks/array-sample
Select one random value, or undefined from an empty input. The random source
is injectable.
import { sample } from "@lucid-softworks/array-sample";
sample(cards, seededRandom);