How to draw a pseudorandom number on device?

I need to draw a pseudorandom number from a uniform distribution on the device. rand() calls the host function. Anyone know how to do this?
Thanks - sorry for cross post

There’s been some talk about generating random numbers before:…amp;btnG=Search

I think this post may be what you are looking for?…st&p=438439

If not, hopefully one of the other posts will help.