in java you need to import the Random class in the utility package, then create a Random object, then use the method nextInt() lets say for example, while assigning it to a variable of that type, so, for example, to generate a number between 0-100:
import java.util.Random;
public class Deleteme...