class_docstr: Basic random agent for DeepMind Lab.
class_docstr_tok: ["Basic","random","agent","for","DeepMind","Lab","."]
docstr: Choose a random amount of a randomly selected action.
docstr_tok: ["Choose","a","random","amount","of","a","randomly","selected","action","."]
code: def step(self):
      """Choose a random amount of a randomly selected action."""
      action_choice = random.randint(0, self.action_count - 1)
      action_amount = random.randint(
          self.action_spec[action_choice]["min"],
          self.action_spec[action_choice]["max"],
      )
      action = np.zeros([self.action_count], dtype=np.intc)
      action[action_choice] = action_amount
      return action
  
file_path: lab/python/random_agent_simple.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import argparse
  import random
  import numpy
  import six
  import deepmind_lab
label_desc: Use image node_id 2 for calling the RandomAgent obj's underlying member method code with example usage: obj.step() and returns: action