Unity How to generate a random number

Random.cs
// whole numbers
int number = Random.Range(0, 100);
 
// floats
float number = Random.Range(0f, 100f);
Navigation
Print/export
Toolbox