Make random_element methods obey sign