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

Method setSeed

server/webclient/src/util/JavaRandom.ts:77–82  ·  view source on GitHub ↗
(n: number)

Source from the content-addressed store, hash-verified

75
76 private nextSigned(bits: number): number {
77 return this.advance() >> (32 - bits);
78 }
79
80 private next(bits: number): number {
81 return this.advance() >>> (32 - bits);
82 }
83
84 // generate exclusive random number within bound
85 nextInt(bound?: number) {

Callers 2

constructorMethod · 0.95
drawStringAntiMacroMethod · 0.45

Calls 1

checkIsPositiveIntFunction · 0.70

Tested by

no test coverage detected