Performance Improvement in computeUnusedUri (Math.random is very bad),
and validate option as new boolean arg.