margin is added to random values only