Depends what you're thinking when you say random. If you mean calling
the function 7 times always pulls up 7 different numbers, then that is
NOT a random sequence. By chance (err... 'randomness') you could
conceivably pull up the same number 7 times in a row (or a hundred times
in a row). You'd sit there and say "This isn't random", but it's just a
'streak' of good/bad/neither luck that this strange sequence ocurred.
One other thing, mostly unrelated to the above. The way computers
usually generate random numbers is by pulling numbers out of a large,
stored table (containing, you guessed it, random numbers). You should
always seed the random number generator before you use it the first
time, so that the sequence doesn't always start in the same place within
the table. If you don't do this, you may notice the same sequence of
numbers every time the program runs.
Jim
-----Original Message-----
From: Les Mizzell <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Wednesday, September 20, 2000 3:35 AM
Subject: RE: [CF-Talk] Random Images-Resources for Information?
>Thanks - will try this and see what happens.
>
>What nobody has told me yet though...is WHY *DOESN'T* "<cfparam
>name="imageswap" default="#randrange(1,7)#">" return 1 through 7
randomly?
>
>Les Mizzell
>***********
>Some people say I'm too apathetic.
>But why should I care?
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.