Jump to content

Random?


Hugos

Recommended Posts

  • Moderators
1 hour ago, Hugos said:

Did not understand a little. Can I see an example of a function that generates a random number in a range?

It helps with randomization. And no I wouldn't mention it, if it isn't available in MTA.

 

This is all: Run on top of your script.

math.randomseed(getTickCount())

-- or

math.randomseed(getTickCount() * getTickCount())

 

 

Link to comment

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