Jump to content

hew do i specify a start point for a random number


SnakesBite101

Recommended Posts

For instance i know Math.random() returns a random number between 0 and 1i know Math.floor(Math.random()*11) returns a random # between 0 and 10 but say i wanted the random number to start from 5 and not 0. how do i go about doing this?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...