working with randomness but not full solution