code for random variance for monsters (commented out)