Jump to content

Recommended Posts

Guest DrObvious
Posted

I'm trying to put random numbers in my script, and I have the random function in there, but each time through my loop I get the same number. Do I need to put in some kind of seed or anything else?

Right now, my code looks like:

$x = Random(1,$rval)

And then it goes on to some if/then statements that depend on $x. Every time I go through the loop, $x always ends up as 8 (which is what I have $rval set as).

Guest DrObvious
Posted

thanks, will try!

(though tomorrow cause I gotta go unfortunately :-/)

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