Skip to content

Commit 36c6463

Browse files
authored
Merge pull request #663 from Axelrod-Python/seed
Merged as a bugfix.
2 parents 87355ce + de60849 commit 36c6463

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/tutorials/advanced/setting_a_seed.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ set. To do this we can use the `seed` function::
1212
>>> players = (axl.Random(), axl.MetaMixer()) # Two stochastic strategies
1313
>>> axl.seed(0)
1414
>>> axl.Match(players, turns=3).play()
15-
[('D', 'C'), ('D', 'D'), ('C', 'D')]
15+
[('D', 'C'), ('D', 'D'), ('C', 'C')]
1616

1717
We obtain the same results is it is played with the same seed::
1818

1919
>>> axl.seed(0)
2020
>>> axl.Match(players, turns=3).play()
21-
[('D', 'C'), ('D', 'D'), ('C', 'D')]
21+
[('D', 'C'), ('D', 'D'), ('C', 'C')]
2222

2323
Note that this is equivalent to::
2424

@@ -28,8 +28,8 @@ Note that this is equivalent to::
2828
>>> random.seed(0)
2929
>>> numpy.random.seed(0)
3030
>>> axl.Match(players, turns=3).play()
31-
[('D', 'C'), ('D', 'D'), ('C', 'D')]
31+
[('D', 'C'), ('D', 'D'), ('C', 'C')]
3232
>>> numpy.random.seed(0)
3333
>>> random.seed(0)
3434
>>> axl.Match(players, turns=3).play()
35-
[('D', 'C'), ('D', 'D'), ('C', 'D')]
35+
[('D', 'C'), ('D', 'D'), ('C', 'C')]

0 commit comments

Comments
 (0)