At 12:14 AM 9/20/00 -0400, you wrote:
>Well, in the process of trying to further understand the random image
>question, I've haven't been able to find much information on random
>functions at all.
>
>"Mastering Cold Fusion 4" doesn't even mention it
>"Cold Fusion 4.0" Web Application Construction Kit (Forta) mentions the
>tags, but doesn't really give any insight into the use
>Nothing on the Allaire site except the product documentation
>
>....anybody want to point me towards a good source?
>Why isn't "randrange(1,7)" really all that random?

I actually did notice something similar to your problem when I was working 
with 4.5.1. Randrange did seem to be fond of numbers one and two. I was 
selecting three unique numbers between 1 and 6. Almost every time 1 was 
picked. About three quarters of the time 2 was picked. A little over half 
of the time for 3. The numbers were sorted after being selected, so we got 
groups like:
1,2,3
1,2,5
1,2,6
1,3,4
1,2,3
1,3,6
1,2,5
2,4,6
1,3,5

I did some statistics on it at the time with 1-9 and it took like 19 tries 
before I didn't get a 1, a 2, or a 3. I figured that the algorithm had been 
changed and was a bit lacking. There wasn't anything I could do about it, 
so I just let it go. It picked those other ones eventually.


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

Reply via email to