In this example, we are using the `rand` function to generate a random number between 1 and 100 and then printing it on the web page using the `echo` statement. This example does not require any package or library. In both examples, we are not using any specific package or library as these are basic PHP functionalities that come with the PHP language itself.