import random


def SelectAction(enabled):
  """
  Default strategy: choose an enabled action at random
  """
  if enabled:  # might be empty
    (aname, args, result, next, properties) = random.choice(enabled)
    return (aname, args)
  else:
    return (None,None)