What language are you using? This looks like a stored procedure to me, but
what do I know. Are you using some other programming language to call the
stored procedure? If so, why not generate the random seed with that, then
pass it to the stored procedure?
---
Anthony Baratta
President
Keyboard Jockeys
Blatant Plug: Cool Jazz for a hot summer,
http://LisaMarie.Baratta.com