Number generator in JS

I am trying to generate a # that is 1-10. If you could tell me how to do this in Java Script it would really help me out...

You'd use Random.Range:

var randInt = Random.Range(1, 11); //the int version is exclusive of the top value

or

var randFloat = Random.Range(1.0, 10.0);