MCPcopy Create free account
hub / github.com/questdb/questdb / nextPositiveInt

Method nextPositiveInt

core/src/main/java/io/questdb/std/Rnd.java:344–347  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

342 }
343
344 public int nextPositiveInt() {
345 int n = (int) nextLong();
346 return n > 0 ? n : (n == Integer.MIN_VALUE ? Integer.MAX_VALUE : -n);
347 }
348
349 public long nextPositiveLong() {
350 long l = nextLong();

Calls 1

nextLongMethod · 0.95