Jump to content

Numbers


Daniel.

Recommended Posts

Posted

How AM i suppose to do a math.random or something like that I'm trying to create a number when a player connects so like it's just a random number how would I do it?

Posted

This will give you a random number between 50 and 100

local RandomNumber = math.random(50, 100) 

Posted

As aforesaid, and if you only specify 1 argument it presumes the first is 1.

So

math.random(1000) 

Gets a random number between 1 and 1000.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...