(path, identifier, seed)
| 330 | } |
| 331 | |
| 332 | function callRandomFunction(path, identifier, seed) { |
| 333 | if (seed === undefined) { |
| 334 | seed = randomSeed(); |
| 335 | } |
| 336 | |
| 337 | let args = [ |
| 338 | identifier, |
| 339 | _numericLiteral(seed) |
| 340 | ]; |
| 341 | |
| 342 | args = args.map(_unwrapExpressionStatement); |
| 343 | args = args.concat(randomArguments(path)); |
| 344 | |
| 345 | return babelTypes.callExpression( |
| 346 | babelTypes.identifier('__callRandomFunction'), |
| 347 | args); |
| 348 | } |
| 349 | |
| 350 | function nearbyRandomNumber(value) { |
| 351 | const probability = random.random(); |
nothing calls this directly
no test coverage detected