Made the randomness weighted