Output random sequence
#include <stdio.h> #include <ctype.h> #include <stdlib.h> #include <time.h> void main() { int sequence_length = 0; int i = 0; long seed = 0; sequence_length = 2; srand((int)seed); for(i = 1; i <= sequence_length; i++) printf("%d ", rand() % 10); }