cuRand sample code