Add docstring
This commit is contained in:
parent
5d5159a08f
commit
b8423f0ed1
1 changed files with 11 additions and 0 deletions
|
|
@ -240,6 +240,17 @@ const __timeToRands = (t, n) => __timeToRandsPrime(__timeToIntSeed(t), n);
|
||||||
// End old random
|
// End old random
|
||||||
|
|
||||||
let useOldRandomBool = false;
|
let useOldRandomBool = false;
|
||||||
|
/**
|
||||||
|
* Whether to use the old random number generator or not. Can be used to support legacy projects
|
||||||
|
*
|
||||||
|
* @name useOldRandom
|
||||||
|
* @param {boolean} b - Whether to use old RNG
|
||||||
|
* @example
|
||||||
|
* useOldRandom(true)
|
||||||
|
* // Repeats every 300 cycles
|
||||||
|
* $: n(irand(50)).seg(16).scale("C:minor").ribbon(88, 32)._punchcard()
|
||||||
|
* $: n(irand(50)).seg(16).scale("C:minor").ribbon(388, 32)._punchcard()
|
||||||
|
*/
|
||||||
export const useOldRandom = (b = true) => useOldRandomBool = b;
|
export const useOldRandom = (b = true) => useOldRandomBool = b;
|
||||||
|
|
||||||
// N samples at time t
|
// N samples at time t
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue