A Reproducible Random Sample
Kestrel Media audits a sample of its ad log by hand every week. The auditor does not choose which rows to look at; a tool picks them. The pick must be repeatable, because a month later somebody checking the audit has to run the tool again and get exactly the same rows. So the tool records a seed — a plain whole number — and sets NumPy's classic global random stream from that seed before it draws anything. It then draws five whole numbers from that stream, each one at least 1 and below 100. Numbers are drawn independently, so the same number can come up more than once.
Task: Print the five numbers the tool draws.
Input
One line holding a single integer, the seed.
Output
One line holding the five drawn numbers in the order they came out, separated by single spaces, each a plain integer.
Example:
Input:
42
Output:
52 93 15 72 61
Sign in to solve this problem
Reading problems is free for everyone — solving them (Run, Submit, and tracking what you've solved) needs an account.
Sign in