60229實況剪輯 請問機率 - 爐石戰記
By Cara
at 2019-05-20T20:50
at 2019-05-20T20:50
Table of Contents
※ 引述《ss8901234 (絕命六龜葡萄)》之銘言:
: https://clips.twitch.tv/StormyTentativePlumberGrammarKing
: 燙台聊天室到現在還在算
: 還是沒什麼頭緒
: 有人知道會發生這樣的機率是幾分之一嗎
我也寫了個程式驗證 有錯請指教
import numpy as np
count=0
for j in range(100000):
np1 = np.array([4,2,2,1,9])
for i in range(9): #扣9次
c=np.where(np1>0)[0] #列出血量大於0的目標
x=np.random.choice(c,1)[0] #隨機從目標選擇
np1[x]=np1[x]-1 #扣血
if np1[4]==9:
count+=1 #9次後沒打到頭count+1
最後count數是3270
約3.27%
--
: https://clips.twitch.tv/StormyTentativePlumberGrammarKing
: 燙台聊天室到現在還在算
: 還是沒什麼頭緒
: 有人知道會發生這樣的機率是幾分之一嗎
我也寫了個程式驗證 有錯請指教
import numpy as np
count=0
for j in range(100000):
np1 = np.array([4,2,2,1,9])
for i in range(9): #扣9次
c=np.where(np1>0)[0] #列出血量大於0的目標
x=np.random.choice(c,1)[0] #隨機從目標選擇
np1[x]=np1[x]-1 #扣血
if np1[4]==9:
count+=1 #9次後沒打到頭count+1
最後count數是3270
約3.27%
--
Tags:
爐石
All Comments
By Kyle
at 2019-05-23T04:07
at 2019-05-23T04:07
By George
at 2019-05-25T19:18
at 2019-05-25T19:18
By Skylar DavisLinda
at 2019-05-30T06:29
at 2019-05-30T06:29
By Anthony
at 2019-06-03T03:35
at 2019-06-03T03:35
By Franklin
at 2019-06-07T19:50
at 2019-06-07T19:50
By Rebecca
at 2019-06-12T04:30
at 2019-06-12T04:30
By Gilbert
at 2019-06-13T08:33
at 2019-06-13T08:33
By Harry
at 2019-06-15T03:28
at 2019-06-15T03:28
By Jacob
at 2019-06-16T18:06
at 2019-06-16T18:06
By Lauren
at 2019-06-20T17:17
at 2019-06-20T17:17
By Hardy
at 2019-06-23T09:56
at 2019-06-23T09:56
By Ina
at 2019-06-23T16:08
at 2019-06-23T16:08
By Queena
at 2019-06-27T23:29
at 2019-06-27T23:29
By Iris
at 2019-06-28T23:26
at 2019-06-28T23:26
By Yedda
at 2019-07-03T08:17
at 2019-07-03T08:17
By Bethany
at 2019-07-04T18:20
at 2019-07-04T18:20
By Una
at 2019-07-07T18:28
at 2019-07-07T18:28
By Rachel
at 2019-07-10T15:54
at 2019-07-10T15:54
By Tristan Cohan
at 2019-07-13T02:17
at 2019-07-13T02:17
By Selena
at 2019-07-17T06:30
at 2019-07-17T06:30
By Tristan Cohan
at 2019-07-18T10:55
at 2019-07-18T10:55
By Delia
at 2019-07-18T13:40
at 2019-07-18T13:40
By James
at 2019-07-19T08:47
at 2019-07-19T08:47
By Audriana
at 2019-07-23T11:20
at 2019-07-23T11:20
By Olga
at 2019-07-26T06:01
at 2019-07-26T06:01
By Hamiltion
at 2019-07-29T23:13
at 2019-07-29T23:13
By Emily
at 2019-07-30T14:17
at 2019-07-30T14:17
By Dinah
at 2019-08-01T11:19
at 2019-08-01T11:19
By Ida
at 2019-08-04T15:44
at 2019-08-04T15:44
Related Posts
60229實況剪輯 請問機率
By Rebecca
at 2019-05-20T19:46
at 2019-05-20T19:46
一拳聖簡易心得
By Barb Cronin
at 2019-05-20T19:07
at 2019-05-20T19:07
blackpen 副本全職業通關之路
By William
at 2019-05-20T14:14
at 2019-05-20T14:14
新賽制是不是沒救了 ResidentSleeper
By Barb Cronin
at 2019-05-20T13:00
at 2019-05-20T13:00
Apxvoid 奇蹟法攻略
By Hedy
at 2019-05-20T13:00
at 2019-05-20T13:00