Jump to content

Getting Random Number


ChipChamp007

Recommended Posts

Okay, I'm making a sort of Sudoku game out of html and javascript, but I want it to have multiple levels, and select a level at random. The problem is when I tried to test doing a random number like this:

var game=Math.floor(Math.random*11)document.write(game)

It writes NaN. How can I make it so that it... works?

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...