added randomness
added randomness