random q gen fixed