Yes.  We aren't really using the Sphinx doctest plugin (since it doesn't integrate well with py.test), which has some facilities for this.  However, you can just put it in a reStructuredText comment and the doctest module will still pick it up, e.g.:

```
.. doctest

    >>> np.random.seed(0)
```

However, I really think we should avoid this, because then a user following along and typing in the examples won't see it.

For that reason, and since the random numbers aren't important to the idea, I thought it better to just change the example.  There are other places (in `modeling`) where I added `np.random.seed(0)`, but made it user-visible so that the results can be repeated.