hasRandomStateScramblefunction
Whether a cuboid has few enough states to be scrambled to one drawn uniformly out of all of them.
Import it
import { hasRandomStateScramble } from "@johnmorrisdotca/kyuubu/cuboid";
Definition
function hasRandomStateScramble(dims: CuboidDims): boolean
Parameters
| Name | Type | Description |
|---|---|---|
dims | CuboidDims | The cuboid’s x, y and z dimensions, in that order. |
Returns
boolean
Whether a cuboid has few enough states to be scrambled to one drawn uniformly out of all of them.
Examples
import { hasRandomStateScramble } from "@johnmorrisdotca/kyuubu/cuboid";
const dims = [2, 3, 3] as const;
console.log(hasRandomStateScramble(dims));falseWhat it prints (run when this page was built)