Typo and tiny code change for clarity
Code change conforms to style used in later portions of the notebook.
This commit is contained in:
parent
2714d19d9e
commit
60f480776b
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user