Path: csiph.com!news.mixmin.net!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: Tim Rentsch
Newsgroups: comp.lang.c
Subject: Re: Compute Unique Numbers in a Set
Date: Tue, 27 Dec 2022 19:48:11 -0800
Organization: A noiseless patient Spider
Lines: 11
Message-ID: <86o7rour2c.fsf@linuxsc.com>
References:
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: reader01.eternal-september.org; posting-host="38ac7d2bf94e0515b2526fa483f331a9"; logging-data="4075844"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+lhA1d1MpZoAvY3u/8HS/lZnDXKys8zLs="
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:eJtu63XeaTEwDOkWC5tnRIDEBRA= sha1:oNfJvRo3f7ZQKvA076zXhxMrkoU=
Xref: csiph.com comp.lang.c:168679
Richard Damon writes:
[.. choosing a small number of values out of N possible values ..]
> Note, in this case N = *60* and *k* = 6 (we are drawing 6 numbers
> from the set of 60, not out of just 6 numbers. Yes, the OP was a
> bit sloppy with his words, but from the code they gave, their intent
> was clear.
The code given by OP produced values from 1 to 59 inclusive, yes?
That's only 59 values.