![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/27627962_1663875859847_DEF.jpg)
Zixi
Followers: 0 Following: 0
Feeds
提问
using a Monte Carlo simulation with 100,000 trials to find the probability of a random integer that is larger than the other random integer in [4,21]
trials= 100000; % 100,000 trials A_win=0; A_win_or_equals_to_B=0; for i = 1 : trials % min 4 and max 21. a random in...
2 years 前 | 3 个回答 | 0