Subject | Re: how random is rand() ? |
---|---|
Author | duilio_fos |
Post date | 2002-09-05T10:25:52Z |
"Ann W. Harrison" <aharrison@i...> wrote:
select mod(floor(rand()*1000000,100) from rdb$database into result
This gets much better random results btw 0 and 99 (what I needed).
Thank you
Duilio
> I can't speak for your goodnesswise girl :)
>that function is an embarrassmentI (sort of) solved the problem by writing :
select mod(floor(rand()*1000000,100) from rdb$database into result
This gets much better random results btw 0 and 99 (what I needed).
Thank you
Duilio