Estimate the chance that two dice add up to 10 or more: draw a 10000 × 2 array of dice rolls with rng.integers(1, 7, size=(10000, 2)), add each row, and store the share of rows ≥ 10 rounded to 3 decimals in result.
import numpy as np rng = np.random.default_rng(42)
Store your final answer in a variable named result.
Each hint gives a little more help. Try on your own first.
Run your code to see the output here.