Cuda Curand Tutorial, There are also functions for generating other distributions and other return types.