Typo and tiny code change for clarity

Code change conforms to style used in later portions of the notebook.
This commit is contained in:
ghurley 2018-01-17 19:22:56 -08:00 committed by GitHub
parent 2714d19d9e
commit 60f480776b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,7 +48,7 @@
"N = 5000 # Default size of the population\n", "N = 5000 # Default size of the population\n",
"MU = 100. # Default mean of the population\n", "MU = 100. # Default mean of the population\n",
"\n", "\n",
"population = [random.gauss(mu=MU, sigma=MU/5) for actor in range(N)]" "population = [random.gauss(mu=MU, sigma=MU/5) for _ in range(N)]"
] ]
}, },
{ {
@ -182,7 +182,7 @@
"outputs": [], "outputs": [],
"source": [ "source": [
"def random_split(A, B):\n", "def random_split(A, B):\n",
" \"Take all the money uin the pot and divide it randomly between the two actors.\"\n", " \"Take all the money in the pot and divide it randomly between the two actors.\"\n",
" pot = A + B\n", " pot = A + B\n",
" share = random.uniform(0, pot)\n", " share = random.uniform(0, pot)\n",
" return share, pot - share" " return share, pot - share"