()
| 117 | const maxLen = digits + 1 + digits; |
| 118 | |
| 119 | const f = () => { |
| 120 | let str = ''; |
| 121 | while (str.length < digits) { |
| 122 | const index = Math.floor(Math.random() * arraySize); |
| 123 | str += digitArray[index]; |
| 124 | } |
| 125 | return Number.parseInt(str); |
| 126 | }; |
| 127 | |
| 128 | const seen = new Set(); |
| 129 | while (output.length < numExamples) { |