 // not a uniform distribution
 void random_number_generator(float* array, int size) {
 	for (int i = 0; i < size; i++) {
-		array[i] = 2 * rand_float_range(0, 1) - 1;
+		array[i] = rand_float_range(0, 1);
 	}
 }
 
-void vector_sum(float* result, float* array, int size) {
+void vector_sum(int* result, int* array, int size) {
 	for (int i = 0; i < size; i++) {
+		//printf("h_inside[%d]=%d\n", i, array[i]);
 		*result += array[i];
 	}
 }

	random_number_generator(h_x, n);
	random_number_generator(h_y, n);
	printf("Filled x and y float array with random numbers\n");

	// setup GPU parameters
	dim3 threads(256);

	// random scattering of (x,y) points
	float *h_x = NULL;
	float *h_y = NULL;
	int *h_inside = NULL;
	unsigned bytes = sizeof(float) * n;

	// allocate memory
