|
|
Archives of the TeradataForum
Message Posted: Fri, 04 Mar 2005 @ 17:48:45 GMT
Subj: | | Re: Random function with a column value |
|
From: | | Victor Sokovin |
| Generic version with arbitrary minval and maxval: | |
| random(1,2000000000) mod ( maxval - minval + 1) + minval | |
It's probably too late to think about this now but whatever is left in my head of the lectures on math statistics issues a warning as to
whether this will still be a *random* function. Of course, it doesn't matter for those who just want "some" numbers but those interested in the
statistical quality of the data might need to do some testing.
Regards,
Victor
| |