Generate a bunch of random data
#include <stdlib.h> #include <stdio.h> const int MAX = 40; int main() { int index; for (index = 0; index < 20; ++index) { int number; number = rand(); printf("%d\n", (number % (MAX-1)) +1); } return (0); }