code: def selRandom(individuals, k):
      """Select *k* individuals at random from the input *individuals* with
      replacement. The list returned contains references to the input
      *individuals*.
  
      :param individuals: A list of individuals to select from.
      :param k: The number of individuals to select.
      :returns: A list of selected individuals.
  
      This function uses the :func:`~random.choice` function from the
      python base :mod:`random` module.
      """
      return [random.choice(individuals) for i in range(k)]
  
file_path: deap/deap/tools/selection.py
imports: import random
  import numpy
  from functools import partial
  from operator import attrgetter
label_desc: Use image node_id 1 for calling a global function with example usage: selRandom(individuals, k) and returns: unknown