Sample generated files for testing, random generator improvement, loops fix