Jump to content

Question About Random.


Recommended Posts

I do Random (2000,2005)

but then i get random numbers that are both less then the Min (2000), and Greater then the Max(2005).

So I guess i'm useing this function incorrectly. Anyone use this one before?

I'm trying to get random numbers form 2000, to 2005 only. so:

2000,2001,2002,2003,2004,2005 should be the only possible choices.

Link to comment
Share on other sites

well, looking at the helpfile for random, looks like this'd be a way of doing it:

MsgBox(0,"random year","in the year " & Int (random(2000,2005)))

;Roll of a die

msgBox(0,"Roll of die", "You rolled a " & Int(Random(6)+1))

"I'm not even supposed to be here today!" -Dante (Hicks)

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
 Share

  • Recently Browsing   0 members

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