CTRandom
Link to ctrandom
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 Copyimport mods.contenttweaker.Random;
ZenMethods
Link to zenmethods
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 CopyrandomObj.nextBoolean();
randomObj.nextInt(int upperBound);