user
Can you help with this?

Write a code snippet for generating a random number.

assistant
The code snippet for generating a random number is as follows:

int randomNumber = Math.floor(Math.random() * 100);