parameters: (self, target)
return_statement: return array[index]
docstring: :type target: int
          :rtype: int
docstring_summary: :type target: int
          :rtype: int
docstring_tokens: : type target : int : rtype : int
function: def pick(self, target):
          """
          :type target: int
          :rtype: int
          """
          array = []
          for index, item in enumerate(self.nums):
              if item == target:
                  array.append(index)
  
          index = int(random.random() * len(array))
          return array[index]
function_tokens: def pick ( self , target ) : array = [ ] for index , item in enumerate ( self . nums ) : if item == target : array . append ( index ) index = int ( random . random ( ) * len ( array ) ) return array [ index ]