title: Random Number Generator in CUDA
body: <p>I've struggled with this all day, I am trying to get a random number generator for threads in my CUDA code.  I have looked through all forums and yes this topic comes up a fair bit but I've spent hours trying to unravel all sorts of codes to no avail.  If anyone knows of a simple method, probably a <strong>device</strong> kernel that can be called to returns a random float between 0 and 1, or an integer that I can transform I would be most grateful.</p>
  
  <p>Again, I hope to use the random number in the kernel, just like rand() for instance.</p>
  
  <p>Thanks in advance</p>