Sample generator for cudaHM input