a random matrix of zeros and ones with exactly N ones
- From: Omid <omid@xxxxxxxxxxxxx>
- Date: Fri, 15 Sep 2006 10:16:52 -0400
How can I generate a random matrix of a defined size with elements
zero or one with exactly M ones? For example a 4*5 matrix with 9 ones
and 11 zeros. I want it to be completely random such that the
generated matrix be able to span the space of all possible
permutations of zeros and ones (M ones)in the matrix.
.
- Follow-Ups:
- Re: a random matrix of zeros and ones with exactly N ones
- From: Michael Wild
- Re: a random matrix of zeros and ones with exactly N ones
- From: Randy Poe
- Re: a random matrix of zeros and ones with exactly N ones
- From: Jos
- Re: a random matrix of zeros and ones with exactly N ones
- From: Peter Boettcher
- Re: a random matrix of zeros and ones with exactly N ones
- From: Steve Amphlett
- Re: a random matrix of zeros and ones with exactly N ones
- Prev by Date: Re: global variables
- Next by Date: Re: global variables
- Previous by thread: to print string and number
- Next by thread: Re: a random matrix of zeros and ones with exactly N ones
- Index(es):
Relevant Pages
|