parameters: (nToInclude, nBits)
return_statement: return random.sample(range(nBits), nToInclude)
docstring: Generates a random subset of a group of indices
  
    **Arguments**
  
      - nToInclude: the size of the desired set
  
      - nBits: the maximum index to be included in the set
  
     **Returns**
  
       a list of indices
docstring_summary: Generates a random subset of a group of indices
docstring_tokens: Generates a random subset of a group of indices
function: def _GenerateRandomEnsemble(nToInclude, nBits):
    """  Generates a random subset of a group of indices
  
    **Arguments**
  
      - nToInclude: the size of the desired set
  
      - nBits: the maximum index to be included in the set
  
     **Returns**
  
       a list of indices
  
    """
    # Before Python 2.3 added the random.sample() function, this was
    # way more complicated:
    return random.sample(range(nBits), nToInclude)
function_tokens: def _GenerateRandomEnsemble ( nToInclude , nBits ) : # Before Python 2.3 added the random.sample() function, this was # way more complicated: return random . sample ( range ( nBits ) , nToInclude )