Added randomSeed() function and changed the random() function accordingly.