How to use random numbers?

Alright so I just want a random number between 1 and 100. In JavaScript please. Thanks!

If you want integer numbers, use Random.Range(1, 101) - this will return integers between 1 and 100 (1 and 100 included). If you want a float, use Random.Range(1.0, 100.0) - the value returned is between 1 and 100 (both values included):

var rndNum: int = Random.Range(1, 101);