Has anybody written a random number generator macro/submacro?

Thanks.

Scott