gpu subsensem rand function on device