You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Random key seedk=Nx.Random.key(1)# roll 1000 dice with a shape of 1x1000{dice_rolls,_}=Nx.Random.randint(k,1,6,shape: {1000})# 2.96Nx.divide(Nx.sum(dice_rolls),1000)# or# 2.96Nx.mean(dice_rolls)# {1000} vector dice_roll*dice_rollNx.multiply(dice_rolls,dice_rolls)# 10.85|>Nx.mean()