Generate samples with C99