(nestingLvl = 1)
| 131 | |
| 132 | // tslint:disable-next-line:ban-types |
| 133 | export function randomFn(nestingLvl = 1): (...args) => any { |
| 134 | const randValue = randomValue(nestingLvl); |
| 135 | return () => randValue; |
| 136 | } |
| 137 | |
| 138 | // returns a pure function that returns same random value everytime |
| 139 | // for a specific number argument `n` |
no test coverage detected