MCPcopy Create free account
hub / github.com/apache/storm / getRandomInt

Function getRandomInt

storm-core/src/dev/resources/tester_spout.js:79–81  ·  view source on GitHub ↗

* Returns a random integer between min (inclusive) and max (inclusive)

(min, max)

Source from the content-addressed store, hash-verified

77 * Returns a random integer between min (inclusive) and max (inclusive)
78 */
79function getRandomInt(min, max) {
80 return Math.floor(Math.random() * (max - min + 1)) + min;
81}
82
83new TesterSpout().run();

Callers 1

tester_spout.jsFile · 0.70

Calls 1

floorMethod · 0.80

Tested by

no test coverage detected