better random number closes #2