Random

Imports java.util.Random;.

(int) new Random().nextInt(<N>);

For [0, N).

Updated: 2026 Aug 19