If you need a quick random number there are at least three ways to do this on your Mac. You can do it in the Calculator app, but you'll need to perform some extra steps to get a useful value. You can use the RANDBETWEEN function in a temporary Numbers spreadsheet. You can also just ask Siri.
Want to know more about how to use Numbers on your Mac? Check out this MacMost course!