Skip to content

Instantly share code, notes, and snippets.

@romanmichaelpaolucci
Last active May 27, 2025 14:50
Show Gist options
  • Select an option

  • Save romanmichaelpaolucci/4a3ce9e0e895edd78ebfb6b2ed7b5b3e to your computer and use it in GitHub Desktop.

Select an option

Save romanmichaelpaolucci/4a3ce9e0e895edd78ebfb6b2ed7b5b3e to your computer and use it in GitHub Desktop.
import random
total = 0
num_rolls = 10000
for _ in range(num_rolls):
roll = random.randint(1, 6)
total += roll
average_naive = total / num_rolls
average_naive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment