random generator and go redirect working