Sign in to follow this  
Followers 0
Falling

Question About Random.

4 posts in this topic

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.

Share this post


Link to post
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)

Share this post


Link to post
Share on other sites

Random ( [[Min ,] Max] ) heh thats what i read then i tried it. I guess i should read the whole file before posting here ;-0 instead of the first line.

anyway thanks you guys are good.

Share this post


Link to post
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
Sign in to follow this  
Followers 0