changed sge idle to call qstat instead of showquiessed
Randomization function