swift
1: 0.10017400000007952
2: 0.10024000000007958
3: 0.1005590000000799
4: 0.10024700000007959
5: 0.09946800000007881
6: 0.09981100000007916
7: 0.10002200000007937
8: 0.09967300000007902
9: 0.10024100000007959
10: 0.09956500000007891
1: 0.09999589095254961
2: 0.10000024795254732
3: 0.09999799095254851
4: 0.09998878595255335
5: 0.09999233895255148
6: 0.10000213795254632
7: 0.10000691495254381
8: 0.09999930095254782
9: 0.1000135809525403
10: 0.10000280995254597
1: 0.0009590000000000168
2: 0.0009880000000000162
3: 0.000979000000000017
4: 0.0010070000000000146
5: 0.0009940000000000157
6: 0.0009060000000000155
7: 0.0010340000000000123
8: 0.000990000000000016
9: 0.0009950000000000156
10: 0.0009720000000000171
11: 0.0009470000000000165
12: 0.0009560000000000167
13: 0.000978000000000017
14: 0.0009510000000000166
15: 0.00106200000000001
16: 0.000991000000000016
17: 0.001003000000000015
18: 0.0010320000000000125
19: 0.001003000000000015
20: 0.0010060000000000147
21: 0.0011040000000000065
22: 0.001037000000000012
23: 0.0010240000000000132
24: 0.0010230000000000133
25: 0.0009970000000000155
26: 0.0009710000000000171
27: 0.0010280000000000128
28: 0.0010010000000000151
29: 0.0010340000000000123
30: 0.001038000000000012
31: 0.0009640000000000169
32: 0.001050000000000011
33: 0.0010100000000000144
34: 0.0009850000000000165
35: 0.0010280000000000128
36: 0.000979000000000017
37: 0.0009750000000000172
38: 0.001027000000000013
39: 0.0009890000000000161
40: 0.0010170000000000138
41: 0.000967000000000017
42: 0.0010080000000000145
43: 0.0009470000000000165
44: 0.000967000000000017
45: 0.0010290000000000128
46: 0.0010120000000000142
47: 0.0009960000000000155
48: 0.001003000000000015
49: 0.000966000000000017
50: 0.0010200000000000135
51: 0.0009880000000000162
52: 0.0009980000000000154
53: 0.000990000000000016
54: 0.0009930000000000158
55: 0.0009590000000000168
56: 0.0010160000000000139
57: 0.0010230000000000133
58: 0.0009530000000000167
59: 0.0009930000000000158
60: 0.001025000000000013
61: 0.0009810000000000168
62: 0.0010010000000000151
63: 0.0010110000000000143
64: 0.0010000000000000152
65: 0.001014000000000014
66: 0.0009200000000000159
67: 0.0009950000000000156
68: 0.0010240000000000132
69: 0.0009610000000000169
70: 0.0010160000000000139
71: 0.000969000000000017
72: 0.0010170000000000138
73: 0.0009810000000000168
74: 0.000968000000000017
75: 0.001003000000000015
76: 0.001026000000000013
77: 0.001038000000000012
78: 0.0009820000000000167
79: 0.0010000000000000152
80: 0.001051000000000011
81: 0.0010810000000000084
82: 0.0009860000000000164
83: 0.0009730000000000171
84: 0.0009740000000000172
85: 0.0010470000000000112
86: 0.001015000000000014
87: 0.0010200000000000135
88: 0.0009190000000000158
89: 0.0010320000000000125
90: 0.0009850000000000165
91: 0.0010700000000000093
92: 0.0010160000000000139
93: 0.001013000000000014
94: 0.0009940000000000157
95: 0.0009330000000000162
96: 0.000978000000000017
97: 0.0009860000000000164
98: 0.0010010000000000151
99: 0.0010010000000000151
100: 0.0010060000000000147
101: 0.0010160000000000139
102: 0.000990000000000016
103: 0.000925000000000016
104: 0.0009740000000000172
105: 0.0009600000000000168
106: 0.0010450000000000114
107: 0.0009830000000000166
108: 0.0009700000000000171
109: 0.0010320000000000125
110: 0.0009860000000000164
111: 0.00106100000000001
112: 0.000991000000000016
113: 0.001026000000000013
114: 0.0010070000000000146
115: 0.0009960000000000155
116: 0.000968000000000017
117: 0.0009960000000000155
118: 0.0010050000000000148
119: 0.0010460000000000113
120: 0.0009770000000000171
121: 0.0010330000000000124
122: 0.001037000000000012
123: 0.0009960000000000155
124: 0.0009570000000000168
125: 0.0010160000000000139
126: 0.0010210000000000134
127: 0.0010210000000000134
128: 0.0009190000000000158
129: 0.0010450000000000114
130: 0.0009510000000000166
131: 0.0009870000000000163
132: 0.0010210000000000134
133: 0.0010090000000000144
134: 0.0010090000000000144
135: 0.0009760000000000172
136: 0.0009890000000000161
137: 0.0010050000000000148
138: 0.000966000000000017
139: 0.0009850000000000165
140: 0.0010320000000000125
141: 0.0010750000000000089
142: 0.0010580000000000103
143: 0.001051000000000011
144: 0.0009550000000000167
145: 0.0010220000000000133
146: 0.0009990000000000153
147: 0.0010040000000000149
148: 0.001014000000000014
149: 0.0010110000000000143
150: 0.0009950000000000156
151: 0.0010220000000000133
152: 0.0010340000000000123
153: 0.0009940000000000157
154: 0.0010230000000000133
155: 0.000967000000000017
156: 0.001002000000000015
157: 0.001049000000000011
158: 0.0010010000000000151
159: 0.0010170000000000138
160: 0.000968000000000017
161: 0.0010160000000000139
162: 0.0010460000000000113
163: 0.0010180000000000137
164: 0.0010420000000000117
165: 0.001025000000000013
166: 0.0010190000000000136
167: 0.0010360000000000122
168: 0.0010210000000000134
169: 0.000978000000000017
170: 0.000978000000000017
171: 0.0010680000000000095
172: 0.0009570000000000168
173: 0.001051000000000011
174: 0.0010180000000000137
175: 0.001003000000000015
176: 0.0010400000000000118
177: 0.0009460000000000165
178: 0.0009580000000000168
179: 0.0009860000000000164
180: 0.0010090000000000144
181: 0.000969000000000017
182: 0.0009560000000000167
183: 0.001027000000000013
184: 0.001037000000000012
185: 0.001039000000000012
186: 0.0009840000000000165
187: 0.0009800000000000169
188: 0.0009920000000000159
189: 0.0010340000000000123
190: 0.0010070000000000146
191: 0.0010240000000000132
192: 0.0009710000000000171
193: 0.0010300000000000127
194: 0.0010050000000000148
195: 0.0009560000000000167
196: 0.0009760000000000172
197: 0.0010180000000000137
198: 0.001027000000000013
199: 0.0010050000000000148
200: 0.001027000000000013
201: 0.0010310000000000126
202: 0.0009930000000000158
203: 0.0010480000000000112
204: 0.0010110000000000143
205: 0.0010220000000000133
206: 0.0010240000000000132
207: 0.0010100000000000144
208: 0.0009840000000000165
209: 0.0009640000000000169
210: 0.0009430000000000164
211: 0.0009960000000000155
212: 0.0009770000000000171
213: 0.0009890000000000161
214: 0.0009880000000000162
215: 0.000979000000000017
216: 0.0009940000000000157
217: 0.0010550000000000106
218: 0.0009820000000000167
219: 0.001025000000000013
220: 0.0009730000000000171
221: 0.0010120000000000142
222: 0.0009720000000000171
223: 0.0009610000000000169
224: 0.0009760000000000172
225: 0.0010110000000000143
226: 0.0009740000000000172
227: 0.0009980000000000154
228: 0.0010320000000000125
229: 0.000979000000000017
230: 0.0009540000000000167
231: 0.0009960000000000155
232: 0.0010310000000000126
233: 0.0010160000000000139
234: 0.0009600000000000168
235: 0.0009840000000000165
236: 0.0009920000000000159
237: 0.0009800000000000169
238: 0.0009890000000000161
239: 0.0009920000000000159
240: 0.0010170000000000138
241: 0.0009640000000000169
242: 0.0009820000000000167
243: 0.0010790000000000086
244: 0.0009530000000000167
245: 0.001014000000000014
246: 0.0009380000000000163
247: 0.0010200000000000135
248: 0.0009960000000000155
249: 0.0009990000000000153
250: 0.0009810000000000168
251: 0.0009640000000000169
252: 0.0010470000000000112
253: 0.001051000000000011
254: 0.0009760000000000172
255: 0.001002000000000015
256: 0.0010120000000000142
257: 0.0010670000000000096
258: 0.0010010000000000151
259: 0.0010060000000000147
260: 0.000968000000000017
261: 0.0009980000000000154
262: 0.0010400000000000118
263: 0.0009860000000000164
264: 0.0010220000000000133
265: 0.0010040000000000149
266: 0.0009930000000000158
267: 0.001026000000000013
268: 0.0009970000000000155
269: 0.0009740000000000172
270: 0.0009390000000000163
271: 0.0010090000000000144
272: 0.0009890000000000161
273: 0.001014000000000014
274: 0.0010420000000000117
275: 0.0010330000000000124
276: 0.0010090000000000144
277: 0.0009360000000000162
278: 0.0010200000000000135
279: 0.0010430000000000116
280: 0.0010000000000000152
281: 0.0010180000000000137
282: 0.001014000000000014
283: 0.0009990000000000153
284: 0.001074000000000009
285: 0.0010040000000000149
286: 0.0009820000000000167
287: 0.000965000000000017
288: 0.001002000000000015
289: 0.0010280000000000128
290: 0.0009890000000000161
291: 0.0010580000000000103
292: 0.0009500000000000166
293: 0.0009860000000000164
294: 0.000990000000000016
295: 0.0009630000000000169
296: 0.0010220000000000133
297: 0.0009530000000000167
298: 0.0009970000000000155
299: 0.0009740000000000172
300: 0.0010000000000000152
301: 0.000967000000000017
302: 0.0009840000000000165
303: 0.0010310000000000126
304: 0.0009980000000000154
305: 0.001038000000000012
306: 0.0010420000000000117
307: 0.0010300000000000127
308: 0.0010400000000000118
309: 0.0010230000000000133
310: 0.0009730000000000171
311: 0.001003000000000015
312: 0.0009640000000000169
313: 0.001039000000000012
314: 0.001039000000000012
315: 0.00106100000000001
316: 0.0009740000000000172
317: 0.0010320000000000125
318: 0.0010280000000000128
319: 0.001049000000000011
320: 0.0009960000000000155
321: 0.0010210000000000134
322: 0.0009620000000000169
323: 0.0009990000000000153
324: 0.000991000000000016
325: 0.0009620000000000169
326: 0.0009570000000000168
327: 0.0010040000000000149
328: 0.001038000000000012
329: 0.001014000000000014
330: 0.0010160000000000139
331: 0.0010060000000000147
332: 0.0010070000000000146
333: 0.0009370000000000163
334: 0.0010040000000000149
335: 0.0010180000000000137
336: 0.0009620000000000169
337: 0.0010010000000000151
338: 0.000990000000000016
339: 0.000965000000000017
340: 0.0010170000000000138
341: 0.0010240000000000132
342: 0.0009720000000000171
343: 0.000968000000000017
344: 0.0009750000000000172
345: 0.0010060000000000147
346: 0.0010090000000000144
347: 0.000969000000000017
348: 0.0009610000000000169
349: 0.0010110000000000143
350: 0.0010000000000000152
351: 0.000991000000000016
352: 0.0010580000000000103
353: 0.0009920000000000159
354: 0.001027000000000013
355: 0.0009510000000000166
356: 0.0009980000000000154
357: 0.0010570000000000104
358: 0.0010180000000000137
359: 0.0010040000000000149
360: 0.0009770000000000171
361: 0.0010520000000000108
362: 0.0010110000000000143
363: 0.001003000000000015
364: 0.0009950000000000156
365: 0.0009710000000000171
366: 0.0010220000000000133
367: 0.0009710000000000171
368: 0.0009770000000000171
369: 0.0010120000000000142
370: 0.001027000000000013
371: 0.0009590000000000168
372: 0.0009840000000000165
373: 0.000925000000000016
374: 0.0010100000000000144
375: 0.0010330000000000124
376: 0.000979000000000017
377: 0.0009530000000000167
378: 0.0009600000000000168
379: 0.0010100000000000144
380: 0.001014000000000014
381: 0.0009970000000000155
382: 0.0009600000000000168
383: 0.0009970000000000155
384: 0.0009890000000000161
385: 0.0010540000000000107
386: 0.0009930000000000158
387: 0.0009600000000000168
388: 0.0009880000000000162
389: 0.0010320000000000125
390: 0.0010180000000000137
391: 0.001037000000000012
392: 0.0009980000000000154
393: 0.001050000000000011
394: 0.0010760000000000088
395: 0.0009960000000000155
396: 0.001026000000000013
397: 0.0009510000000000166
398: 0.0010320000000000125
399: 0.0010570000000000104
400: 0.0010360000000000122
401: 0.0009920000000000159
402: 0.0009770000000000171
403: 0.0010910000000000075
404: 0.0009620000000000169
405: 0.0010300000000000127
406: 0.0010340000000000123
407: 0.001014000000000014
408: 0.001026000000000013
409: 0.001051000000000011
410: 0.0009800000000000169
411: 0.0009960000000000155
412: 0.0010220000000000133
413: 0.0009710000000000171
414: 0.0010210000000000134
415: 0.0009880000000000162
416: 0.0009640000000000169
417: 0.0010200000000000135
418: 0.00106300000000001
419: 0.0009930000000000158
420: 0.001109000000000006
421: 0.0010890000000000077
422: 0.0009960000000000155
423: 0.0009640000000000169
424: 0.0010320000000000125
425: 0.0010180000000000137
426: 0.000990000000000016
427: 0.0009750000000000172
428: 0.0009820000000000167
429: 0.0010200000000000135
430: 0.0009960000000000155
431: 0.0009610000000000169
432: 0.001037000000000012
433: 0.0010010000000000151
434: 0.0010400000000000118
435: 0.0010100000000000144
436: 0.0010120000000000142
437: 0.001038000000000012
438: 0.001014000000000014
439: 0.0009860000000000164
440: 0.001037000000000012
441: 0.0010480000000000112
442: 0.0010710000000000092
443: 0.001002000000000015
444: 0.0009940000000000157
445: 0.0010190000000000136
446: 0.0010050000000000148
447: 0.0010700000000000093
448: 0.000967000000000017
449: 0.0010060000000000147
450: 0.0009920000000000159
451: 0.0009590000000000168
452: 0.000979000000000017
453: 0.001074000000000009
454: 0.0010000000000000152
455: 0.0009470000000000165
456: 0.0009980000000000154
457: 0.0010450000000000114
458: 0.0010120000000000142
459: 0.0009710000000000171
460: 0.0010100000000000144
461: 0.000967000000000017
462: 0.0010420000000000117
463: 0.0010430000000000116
464: 0.000991000000000016
465: 0.001013000000000014
466: 0.0009770000000000171
467: 0.0009840000000000165
468: 0.000991000000000016
469: 0.0009820000000000167
470: 0.0010190000000000136
471: 0.0009960000000000155
472: 0.0010230000000000133
473: 0.0010060000000000147
474: 0.0009450000000000165
475: 0.0009620000000000169
476: 0.0009810000000000168
477: 0.0009950000000000156
478: 0.0009830000000000166
479: 0.0010010000000000151
480: 0.0009930000000000158
481: 0.0009540000000000167
482: 0.0009590000000000168
483: 0.0010530000000000107
484: 0.0009710000000000171
485: 0.0009490000000000166
486: 0.0009870000000000163
487: 0.0010160000000000139
488: 0.0010480000000000112
489: 0.0010820000000000083
490: 0.0009470000000000165
491: 0.0009850000000000165
492: 0.0009610000000000169
493: 0.0010070000000000146
494: 0.0009800000000000169
495: 0.001015000000000014
496: 0.0009560000000000167
497: 0.000991000000000016
498: 0.0010560000000000105
499: 0.0009980000000000154
500: 0.0009810000000000168
501: 0.0010070000000000146
502: 0.0009620000000000169
503: 0.001013000000000014
504: 0.0009800000000000169
505: 0.0010430000000000116
506: 0.001013000000000014
507: 0.000991000000000016
508: 0.001015000000000014
509: 0.0010000000000000152
510: 0.000990000000000016
511: 0.0010240000000000132
512: 0.0010340000000000123
513: 0.0009920000000000159
514: 0.0010100000000000144
515: 0.001014000000000014
516: 0.000966000000000017
517: 0.0010430000000000116
518: 0.001025000000000013
519: 0.0009570000000000168
520: 0.0009510000000000166
521: 0.0010280000000000128
522: 0.0010540000000000107
523: 0.0009950000000000156
524: 0.0009830000000000166
525: 0.0009640000000000169
526: 0.0009760000000000172
527: 0.0009600000000000168
528: 0.0010040000000000149
529: 0.0009510000000000166
530: 0.0009730000000000171
531: 0.000978000000000017
532: 0.0010360000000000122
533: 0.0009560000000000167
534: 0.0010310000000000126
535: 0.0010220000000000133
536: 0.0009710000000000171
537: 0.0010190000000000136
538: 0.0010070000000000146
539: 0.0010570000000000104
540: 0.000990000000000016
541: 0.0010340000000000123
542: 0.0009830000000000166
543: 0.0010050000000000148
544: 0.0009290000000000161
545: 0.000990000000000016
546: 0.0009630000000000169
547: 0.001003000000000015
548: 0.0010100000000000144
549: 0.0009860000000000164
550: 0.0009980000000000154
551: 0.0010360000000000122
552: 0.001050000000000011
553: 0.000968000000000017
554: 0.0009440000000000164
555: 0.0010090000000000144
556: 0.0009990000000000153
557: 0.0010200000000000135
558: 0.0010330000000000124
559: 0.0009550000000000167
560: 0.0010090000000000144
561: 0.0009220000000000159
562: 0.0009810000000000168
563: 0.0009920000000000159
564: 0.0009750000000000172
565: 0.0009560000000000167
566: 0.0010320000000000125
567: 0.0010570000000000104
568: 0.000966000000000017
569: 0.0010290000000000128
570: 0.0010410000000000118
571: 0.0010210000000000134
572: 0.001013000000000014
573: 0.0010190000000000136
574: 0.0009860000000000164
575: 0.0009480000000000165
576: 0.000991000000000016
577: 0.0010220000000000133
578: 0.0009920000000000159
579: 0.001050000000000011
580: 0.0010600000000000102
581: 0.0009830000000000166
582: 0.0009960000000000155
583: 0.0010110000000000143
584: 0.0009880000000000162
585: 0.0009720000000000171
586: 0.0009890000000000161
587: 0.0010110000000000143
588: 0.0010180000000000137
589: 0.0009850000000000165
590: 0.0009770000000000171
591: 0.0009180000000000158
592: 0.0009640000000000169
593: 0.001002000000000015
594: 0.0010920000000000075
595: 0.001013000000000014
596: 0.0010050000000000148
597: 0.0009800000000000169
598: 0.0009870000000000163
599: 0.0010210000000000134
600: 0.0009880000000000162
601: 0.000967000000000017
602: 0.0010090000000000144
603: 0.0009800000000000169
604: 0.0010320000000000125
605: 0.001015000000000014
606: 0.0010600000000000102
607: 0.0009800000000000169
608: 0.000969000000000017
609: 0.0009300000000000161
610: 0.0009300000000000161
611: 0.0010110000000000143
612: 0.0009600000000000168
613: 0.0010230000000000133
614: 0.001002000000000015
615: 0.0010330000000000124
616: 0.0010520000000000108
617: 0.0009950000000000156
618: 0.0010400000000000118
619: 0.0010340000000000123
620: 0.0010360000000000122
621: 0.0009710000000000171
622: 0.001015000000000014
623: 0.0010040000000000149
624: 0.0010090000000000144
625: 0.0010840000000000081
626: 0.0009630000000000169
627: 0.0009370000000000163
628: 0.000968000000000017
629: 0.0010000000000000152
630: 0.0010320000000000125
631: 0.0010450000000000114
632: 0.0010170000000000138
633: 0.0009880000000000162
634: 0.0009800000000000169
635: 0.0009950000000000156
636: 0.0009830000000000166
637: 0.0010240000000000132
638: 0.0009600000000000168
639: 0.001039000000000012
640: 0.0009970000000000155
641: 0.0010100000000000144
642: 0.0010220000000000133
643: 0.0009750000000000172
644: 0.001050000000000011
645: 0.000969000000000017
646: 0.000978000000000017
647: 0.0009970000000000155
648: 0.0009930000000000158
649: 0.0009810000000000168
650: 0.0009740000000000172
651: 0.0010480000000000112
652: 0.0009600000000000168
653: 0.0009810000000000168
654: 0.0008900000000000151
655: 0.0010070000000000146
656: 0.0009850000000000165
657: 0.0009990000000000153
658: 0.001025000000000013
659: 0.000969000000000017
660: 0.0010040000000000149
661: 0.0010050000000000148
662: 0.0009730000000000171
663: 0.001015000000000014
664: 0.001003000000000015
665: 0.0009860000000000164
666: 0.0010280000000000128
667: 0.0009700000000000171
668: 0.0010120000000000142
669: 0.0010070000000000146
670: 0.0009970000000000155
671: 0.000991000000000016
672: 0.001049000000000011
673: 0.00106100000000001
674: 0.001027000000000013
675: 0.0009560000000000167
676: 0.000979000000000017
677: 0.0009840000000000165
678: 0.0010480000000000112
679: 0.0009510000000000166
680: 0.0009880000000000162
681: 0.0010010000000000151
682: 0.0010240000000000132
683: 0.0010520000000000108
684: 0.0010180000000000137
685: 0.000990000000000016
686: 0.0009880000000000162
687: 0.0010040000000000149
688: 0.001014000000000014
689: 0.0009480000000000165
690: 0.0009590000000000168
691: 0.001013000000000014
692: 0.0010100000000000144
693: 0.0009410000000000164
694: 0.0009820000000000167
695: 0.0010070000000000146
696: 0.0009750000000000172
697: 0.0009960000000000155
698: 0.0010200000000000135
699: 0.0010690000000000094
700: 0.0009860000000000164
701: 0.0010430000000000116
702: 0.001014000000000014
703: 0.000991000000000016
704: 0.0009990000000000153
705: 0.0009160000000000158
706: 0.0009400000000000163
707: 0.0009840000000000165
708: 0.0009840000000000165
709: 0.0010400000000000118
710: 0.0009550000000000167
711: 0.0010180000000000137
712: 0.0010280000000000128
713: 0.0010520000000000108
714: 0.0009710000000000171
715: 0.0009800000000000169
716: 0.0010360000000000122
717: 0.0009810000000000168
718: 0.000969000000000017
719: 0.0009530000000000167
720: 0.0009480000000000165
721: 0.0010230000000000133
722: 0.0010550000000000106
723: 0.0009760000000000172
724: 0.0010190000000000136
725: 0.001050000000000011
726: 0.0010010000000000151
727: 0.000968000000000017
728: 0.001014000000000014
729: 0.0010350000000000123
730: 0.0009630000000000169
731: 0.0010120000000000142
732: 0.0009760000000000172
733: 0.0009630000000000169
734: 0.0010180000000000137
735: 0.0009840000000000165
736: 0.0009640000000000169
737: 0.000979000000000017
738: 0.0009770000000000171
739: 0.0009800000000000169
740: 0.0009850000000000165
741: 0.0009970000000000155
742: 0.000990000000000016
743: 0.0009980000000000154
744: 0.0009850000000000165
745: 0.0010180000000000137
746: 0.0009820000000000167
747: 0.001014000000000014
748: 0.0009980000000000154
749: 0.000968000000000017
750: 0.0009960000000000155
751: 0.000965000000000017
752: 0.0010330000000000124
753: 0.0010200000000000135
754: 0.000978000000000017
755: 0.000966000000000017
756: 0.0010090000000000144
757: 0.0009310000000000161
758: 0.0009310000000000161
759: 0.0010220000000000133
760: 0.001014000000000014
761: 0.001014000000000014
762: 0.0010520000000000108
763: 0.001049000000000011
764: 0.0010040000000000149
765: 0.0009750000000000172
766: 0.001027000000000013
767: 0.0009640000000000169
768: 0.0009830000000000166
769: 0.0010310000000000126
770: 0.0009350000000000162
771: 0.001003000000000015
772: 0.001015000000000014
773: 0.0009630000000000169
774: 0.0009890000000000161
775: 0.0009840000000000165
776: 0.0009570000000000168
777: 0.0010640000000000098
778: 0.0009800000000000169
779: 0.0009820000000000167
780: 0.000978000000000017
781: 0.0009720000000000171
782: 0.0009490000000000166
783: 0.0009970000000000155
784: 0.0009560000000000167
785: 0.0010280000000000128
786: 0.001039000000000012
787: 0.0009760000000000172
788: 0.001026000000000013
789: 0.0009770000000000171
790: 0.001002000000000015
791: 0.0009940000000000157
792: 0.0010120000000000142
793: 0.0009850000000000165
794: 0.001014000000000014
795: 0.0010310000000000126
796: 0.0009210000000000159
797: 0.001003000000000015
798: 0.0009840000000000165
799: 0.000990000000000016
800: 0.0010200000000000135
801: 0.0010100000000000144
802: 0.0010550000000000106
803: 0.0009420000000000164
804: 0.0009920000000000159
805: 0.0009720000000000171
806: 0.0009550000000000167
807: 0.000991000000000016
808: 0.000978000000000017
809: 0.0010680000000000095
810: 0.0009880000000000162
811: 0.0009710000000000171
812: 0.0010100000000000144
813: 0.0009800000000000169
814: 0.0009930000000000158
815: 0.0010190000000000136
816: 0.0010070000000000146
817: 0.0010240000000000132
818: 0.000967000000000017
819: 0.0009770000000000171
820: 0.0010000000000000152
821: 0.000990000000000016
822: 0.0010220000000000133
823: 0.0009700000000000171
824: 0.0009700000000000171
825: 0.0009880000000000162
826: 0.0010520000000000108
827: 0.0009880000000000162
828: 0.0009880000000000162
829: 0.000966000000000017
830: 0.001013000000000014
831: 0.0009630000000000169
832: 0.0009430000000000164
833: 0.0010240000000000132
834: 0.0009810000000000168
835: 0.0009570000000000168
836: 0.0009860000000000164
837: 0.0009370000000000163
838: 0.0010060000000000147
839: 0.000968000000000017
840: 0.0010430000000000116
841: 0.0009860000000000164
842: 0.0009840000000000165
843: 0.0009960000000000155
844: 0.001051000000000011
845: 0.0010280000000000128
846: 0.0009820000000000167
847: 0.0010230000000000133
848: 0.0009750000000000172
849: 0.0010460000000000113
850: 0.0010110000000000143
851: 0.000968000000000017
852: 0.0009980000000000154
853: 0.0010170000000000138
854: 0.0010070000000000146
855: 0.0010080000000000145
856: 0.0010040000000000149
857: 0.000979000000000017
858: 0.0009520000000000166
859: 0.0009880000000000162
860: 0.00106100000000001
861: 0.0010100000000000144
862: 0.0009950000000000156
863: 0.0010010000000000151
864: 0.0009860000000000164
865: 0.0009510000000000166
866: 0.001015000000000014
867: 0.0009530000000000167
868: 0.000979000000000017
869: 0.0009500000000000166
870: 0.0009400000000000163
871: 0.0009940000000000157
872: 0.0009320000000000161
873: 0.0010110000000000143
874: 0.0010530000000000107
875: 0.0009290000000000161
876: 0.000968000000000017
877: 0.001039000000000012
878: 0.0010110000000000143
879: 0.0010280000000000128
880: 0.001039000000000012
881: 0.0010230000000000133
882: 0.0009800000000000169
883: 0.0010050000000000148
884: 0.001049000000000011
885: 0.0009700000000000171
886: 0.0010090000000000144
887: 0.0009590000000000168
888: 0.000924000000000016
889: 0.0010430000000000116
890: 0.0010330000000000124
891: 0.0009390000000000163
892: 0.0010010000000000151
893: 0.001002000000000015
894: 0.0010220000000000133
895: 0.0009700000000000171
896: 0.0009640000000000169
897: 0.0010360000000000122
898: 0.0010110000000000143
899: 0.0010070000000000146
900: 0.0010460000000000113
901: 0.0009700000000000171
902: 0.0010100000000000144
903: 0.0010560000000000105
904: 0.0010050000000000148
905: 0.0009830000000000166
906: 0.0010050000000000148
907: 0.0010110000000000143
908: 0.0009770000000000171
909: 0.0009720000000000171
910: 0.0009920000000000159
911: 0.0010300000000000127
912: 0.0009460000000000165
913: 0.0010640000000000098
914: 0.0010060000000000147
915: 0.0010060000000000147
916: 0.0009930000000000158
917: 0.00106200000000001
918: 0.0010550000000000106
919: 0.001015000000000014
920: 0.0009940000000000157
921: 0.0010110000000000143
922: 0.0009940000000000157
923: 0.0009860000000000164
924: 0.0010160000000000139
925: 0.0010350000000000123
926: 0.0010210000000000134
927: 0.0009620000000000169
928: 0.0010040000000000149
929: 0.0010340000000000123
930: 0.0009750000000000172
931: 0.0009490000000000166
932: 0.0010530000000000107
933: 0.0010110000000000143
934: 0.000978000000000017
935: 0.0010190000000000136
936: 0.0010320000000000125
937: 0.0010560000000000105
938: 0.0009610000000000169
939: 0.0009570000000000168
940: 0.000979000000000017
941: 0.0009580000000000168
942: 0.0010460000000000113
943: 0.0010230000000000133
944: 0.0009830000000000166
945: 0.0010340000000000123
946: 0.0010240000000000132
947: 0.0009880000000000162
948: 0.001015000000000014
949: 0.001037000000000012
950: 0.0009980000000000154
951: 0.001003000000000015
952: 0.0010190000000000136
953: 0.0010420000000000117
954: 0.000991000000000016
955: 0.000991000000000016
956: 0.0010000000000000152
957: 0.000967000000000017
958: 0.0009970000000000155
959: 0.0010170000000000138
960: 0.0010000000000000152
961: 0.0010590000000000102
962: 0.0010350000000000123
963: 0.0010440000000000115
964: 0.000965000000000017
965: 0.0010590000000000102
966: 0.0009980000000000154
967: 0.0009420000000000164
968: 0.001014000000000014
969: 0.0010240000000000132
970: 0.0009510000000000166
971: 0.001027000000000013
972: 0.0009870000000000163
973: 0.0010440000000000115
974: 0.000966000000000017
975: 0.0009700000000000171
976: 0.0009930000000000158
977: 0.0009990000000000153
978: 0.0010280000000000128
979: 0.0010230000000000133
980: 0.0010170000000000138
981: 0.0009970000000000155
982: 0.001014000000000014
983: 0.0010110000000000143
984: 0.0009890000000000161
985: 0.0009480000000000165
986: 0.0010440000000000115
987: 0.0010240000000000132
988: 0.0010000000000000152
989: 0.0009960000000000155
990: 0.0010290000000000128
991: 0.0010060000000000147
992: 0.0009820000000000167
993: 0.0010110000000000143
994: 0.0009700000000000171
995: 0.0009830000000000166
996: 0.0010080000000000145
997: 0.0009820000000000167
998: 0.0009770000000000171
999: 0.0009510000000000166
1000: 0.001015000000000014
import Foundation
let N = 1000000
let X = 1000
// Generate N random numbers between 1 and X
var numbers = [Int]()
for _ in 0..<N {
let number = Int.random(in: 1...X)
numbers.append(number)
}
// Calculate the probability of each number
var probabilities = [Int: Double]()
for number in numbers {
if let count = probabilities[number] {
probabilities[number] = count + 1.0/Double(N)
} else {
probabilities[number] = 1.0/Double(N)
}
}
// Output probabilities to a file
let fileName = "swift_\(X)_\(N).txt"
let filePath = FileManager.default.currentDirectoryPath + "/" + fileName
let fileURL = URL(fileURLWithPath: filePath)
var output = ""
for number in probabilities.keys.sorted() {
output += "\(number): \(probabilities[number]!)\n"
}
do {
try output.write(to: fileURL, atomically: true, encoding: .utf8)
print("Probabilities written to file \(fileName)")
} catch {
print("Error writing to file: \(error)")
}