how to generate random numbers in cuRAND more than 4096 numbers

i am using cuRAND to generate random numbers. i want this number to be more than 10000 numbers. what i have to do in code.

I’ve tried to eliminate smaller numbers using Thrust…

// DO NOT FORGET the option : --expt-extended-lambda 
#include <cuda_runtime.h>
#include <curand.h>
#include <iostream>
#include <ctime>

#include <thrust/remove.h>
#include <thrust/device_ptr.h>

int main() {

  curandGenerator_t genGPU;

  curandCreateGenerator(&genGPU, CURAND_RNG_PSEUDO_MTGP32);
  curandSetPseudoRandomGeneratorSeed(genGPU, (unsigned long long)time(nullptr));

  const int n = 100;
  unsigned int* data;
  cudaMallocManaged(&data, n*sizeof(unsigned int));

  // generate random numbers
  curandGenerate(genGPU, data, n);

  // eliminate smallers
  thrust::device_ptr<unsigned int> first(data);
  thrust::device_ptr<unsigned int> last = 
    thrust::remove_if(first, first+n, 
                      [] __device__ (unsigned int x) { return x <= 10000U;});

  int count = last - first; // number of generated  
  while ( first != last ) {
    std::cout << *first << ' '; 
    ++first;
  }
  std::cout << std::endl << count << std::endl;

  curandDestroyGenerator(genGPU);
  cudaFree(data);

}