The CTRandom object is only accessible from within CoT IWorld objects and allows you to access the world's random number generator.

Importing the class

Link to importing-the-class

If you ever want to import the class, here you go:

ZenScript
Copy
import mods.contenttweaker.Random;

The only methods available are for random values, either as boolean or as int.
For the latter, you also need to provide an upper bound (the upper bound is exclusive).

ZenScript
Copy
randomObj.nextBoolean();
randomObj.nextInt(int upperBound);