Author Scott Eilerman
Recipients Scott Eilerman, docs@python, rhettinger
Date 2018-03-21.15:31:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1521646268.75.0.467229070634.issue33114@psf.upfronthosting.co.za>
In-reply-to
Content
Sorry, there's a typo in that example. It should look like:


random.seed(fixed_seed)
random.sample(choices, n)[-1]

Then, later, I want the next draw, so I did:

random.seed(fixed_seed)
random.sample(choices, n+1)[-1]
History
Date User Action Args
2018-03-21 15:31:08Scott Eilermansetrecipients: + Scott Eilerman, rhettinger, docs@python
2018-03-21 15:31:08Scott Eilermansetmessageid: <1521646268.75.0.467229070634.issue33114@psf.upfronthosting.co.za>
2018-03-21 15:31:08Scott Eilermanlinkissue33114 messages
2018-03-21 15:31:08Scott Eilermancreate