Reference · Game engine and table
mixSeedfunction
Two numbers mixed into one seed, so each hand of a game is shuffled from its own.
Import it
import { mixSeed } from "@johnmorrisdotca/hitotsu";
Definition
function mixSeed(seed: number, salt: number): number
Parameters
| Name | Type | Description |
|---|---|---|
seed | number | The numeric seed that reproduces the same random sequence or deal. |
salt | number | The extra integer mixed with the seed for this reshuffle. |
Returns
number
Two numbers mixed into one seed, so each hand of a game is shuffled from its own.
Examples
import { mixSeed } from "@johnmorrisdotca/hitotsu";
console.log(mixSeed(42, 2));2743639371What it prints (run when this page was built)