Running a quick test, I'm finding (on CF 6.1) that after runing
randomize(timeformat(now(), "ss")) (which, btw, is not a great sample
set) that I routinely get a reasonable even sample.

That is, for a run of 10000, randramge(1,25) returns each number at
least 350-ish times and no more than 450-ish times.

Note that I'm not really applying any mathematical sense of random, just
a common-sense one.

--Ben

S. Isaac Dealey wrote:

>><cfset randNUM = #RandRange(1,26)#>
>
>
>>Seems "weighted" towards the numbers in the middle more.
>>So, how can I
>>make this a little more random?
>
>
> How'd you test that theory? ... How large was your sample? The sample
> size needs to be in the tens to hundreds of thousands at least to be
> sure you're not just seeing the random weighting you'd get from a
> small sample. Law of large numbers and all that... iirc...
>
> s. isaac dealey   954.927.5117
>
> new epoch : isn't it time for a change?
>
> add features without fixtures with
> the onTap open source framework
> http://www.sys-con.com/story/?storyid=44477&DE=1
> http://www.sys-con.com/story/?storyid=45569&DE=1
> http://www.fusiontap.com
>
>
>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to