#include #include void getRandomArrays(int **a1, int **a2, int amount) { *a1 = (int *) malloc(amount * sizeof(int)); *a2 = (int *) malloc(amount * sizeof(int)); if ((a1 == NULL) || (a2 == NULL)) { printf("Memory allocation error\n"); exit(0); } for (int i=0; i