SERVER-7849: fix Random.genExp when random returns 0