[BUILD] Randomizer update

Change few statements to make the script ruby 1.8.6 compatible