(validness = 0.7, nestingLvl = 1, min?: number, max?: number)
| 190 | } |
| 191 | |
| 192 | export function numberOrRandomValue(validness = 0.7, nestingLvl = 1, min?: number, max?: number) { |
| 193 | return randomBoolean(validness) ? randomNumber(min, max) : randomValue(nestingLvl); |
| 194 | } |
| 195 | |
| 196 | export function randomArray(nestingLvl = 2, maxLength = 6): any[] { |
| 197 | if (nestingLvl < 0 || !isNumber(nestingLvl)) { |
no test coverage detected