Skip to content

Instantly share code, notes, and snippets.

@ttdoda
Created November 24, 2015 13:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ttdoda/fc7fa7ea1b774f6597f8 to your computer and use it in GitHub Desktop.
Save ttdoda/fc7fa7ea1b774f6597f8 to your computer and use it in GitHub Desktop.
Graf Zeppelin ドロップ確率
% ruby -e '10.step(200,10) do |i| puts "%3d: %f\n"%[i, (1 - (1-0.025) **i) * 100] end'
10: 22.367038
20: 39.731232
30: 53.211570
40: 63.676756
50: 71.801190
60: 78.108428
70: 83.004924
80: 86.806219
90: 89.757277
100: 92.048271
110: 93.826837
120: 95.207591
130: 96.279511
140: 97.111674
150: 97.757707
160: 98.259242
170: 98.648598
180: 98.950866
190: 99.185526
200: 99.367700
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment