Ruby port of geneGen.py (random gene generator)