|The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....|
|Home BasePack DStruct Class TBitFld Methods RandomFill|
|See also: Clear|
The method RandomFill sets either a percentage of randomly selected bits of the bit field (version ), or a specified number of bits to TRUE (version ). All other bits are set to FALSE.
The percentage is defined by the parameter Percent and may take values between 0.0 and 100.0, the number of bits in version  is specified by the parameter NBits and may take values between 0 and Size.