(min, max)
| 14460 | |
| 14461 | var int = (function sourceRandomInt(source) { |
| 14462 | function randomInt(min, max) { |
| 14463 | if (arguments.length < 2) max = min, min = 0; |
| 14464 | min = Math.floor(min); |
| 14465 | max = Math.floor(max) - min; |
| 14466 | return function() { |
| 14467 | return Math.floor(source() * max + min); |
| 14468 | }; |
| 14469 | } |
| 14470 | |
| 14471 | randomInt.source = sourceRandomInt; |
| 14472 |
nothing calls this directly
no outgoing calls
no test coverage detected