MCPcopy Create free account
hub / github.com/MaxBittker/rs-sdk / next

Function next

server/engine/src/util/JavaRandom.ts:54–56  ·  view source on GitHub ↗
(bits: number)

Source from the content-addressed store, hash-verified

52}
53
54function next(bits: number) {
55 return _next() >>> (32 - bits);
56}
57
58function checkIsPositiveInt(n: number, r = Number.MAX_SAFE_INTEGER) {
59 if (n < 0 || n > r) {

Callers 4

nextIntMethod · 0.70
nextBooleanMethod · 0.70
nextFloatMethod · 0.70
nextDoubleMethod · 0.70

Calls 1

_nextFunction · 0.70

Tested by

no test coverage detected