Create a new PRNG seeded with seed (truncated to 32-bit integer).
random seed value
Return a float in [0, 1).
a pseudorandom float in [0, 1)
Return an integer in [0, max).
exclusive upper bound
a pseudorandom integer in [0, max)
Pick a CarClass based on weights using this RNG, filtered to only the enabled body types. Pass effectiveClasses to use config-overridden values.
OptionalenabledBodyTypes: string[]set of enabled body type names
OptionaleffectiveClasses: CarClass[]array of effective car class definitions
the selected car class
A simple, fast, seedable 32-bit PRNG (Mulberry32). Same seed produces the same sequence on every device / JS engine.