Added support for a configurable `random` function , for deterministic random values