Method RandomSet
RandomSet(Int32, Int32)
Create a random set which has
numBitsSet
of its
numBits
bits set.
Declaration
protected static BitArray RandomSet(int numBits, int numBitsSet)
Parameters
Type |
Name |
Description |
System.Int32 |
numBits |
|
System.Int32 |
numBitsSet |
|
Returns
Type |
Description |
BitArray |
|
RandomSet(Int32, Single)
Same as but given a load factor.
Declaration
protected static BitArray RandomSet(int numBits, float percentSet)
Parameters
Type |
Name |
Description |
System.Int32 |
numBits |
|
System.Single |
percentSet |
|
Returns
Type |
Description |
BitArray |
|