use chance to generate random value