create random number with weighted average