Feedback
Random integer APIs fail with Integer.Max
- Status
- Fixed
- Fixed in
- v26.6.5
- Source discussion
- https://forum.objo.dev/d/411-random-number
- Last updated
- 2026-06-21
Upvotes
0 upvotes
Uses your Objo forum account.
Public summary
Random integer generation fails when the caller passes large 64-bit Integer bounds such as Integer.Max. For example, rng.NextInt(0, Integer.Max) throws InvalidArgumentException even though Objo Integer is a signed 64-bit type and the API is documented as accepting Integer min/max bounds.