Custom random generator for consistent sequences