diff --git a/bucketsort.c b/bucketsort.c
new file mode 100644
index 0000000000000000000000000000000000000000..eb5896074f362817abc9198dfa03a15716cddea3
--- /dev/null
+++ b/bucketsort.c
@@ -0,0 +1,15 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <time.h>
+#include <mpi.h>
+#include <assert.h>
+
+float *create_rand_nums(int num_elements) {
+	float *rand_nums = (float *) malloc(sizeof(float) * num_elements);
+	assert(rand_nums != NULL);
+	int i;
+	for (i = 0; i < num_elements; i++) {
+		rand_nums[i] = (rand() / (float) RAND_MAX);
+	}
+	return rand_nums;
+}