def random_game(nums_actions, random_state=None):
 N = len(nums_actions)
 if (N == 0):
  raise ValueError('nums_actions must be non-empty')
 random_state = check_random_state(random_state)
 players = [Player(random_state.random_sample((nums_actions[i:] + nums_actions[:i]))) for i in range(N)]
 g = NormalFormGame(players)
 return g

def random_game ( nums_actions , random_state = None ) : N = len ( nums_actions ) if ( N == 0 ) : raise ValueError ( 'nums_actions must be non-empty' ) random_state = check_random_state ( random_state ) players = [ Player ( random_state . random_sample ( ( nums_actions [ i : ] + nums_actions [ : i ] ) ) ) for i in range ( N ) ] g = NormalFormGame ( players ) return g
return a random normalformgame instance where the payoffs are drawn independently from the uniform distribution on [0 .