remove calls to rand() from paintlines