Generalize random generator type