Added Random Gene function