fixed random index array and made radio an option