The rand method returns a random number between zero and the given value. Notice that this method is inherited from the Real role (refer to the diagram at the beginning of the Using simple built-in data types section), and the return value is a floating-point number:
say 100.rand;
Running this code a few times results in different values being printed, as you can see here: