def randomPolicy(Ts):
 numA = len(Ts)
 dim = len(Ts[0])
 return ((ones((dim, numA)) / float(numA)), mean(array(Ts), axis=0))

def randomPolicy ( Ts ) : numA = len ( Ts ) dim = len ( Ts [ 0 ] ) return ( ( ones ( ( dim , numA ) ) / float ( numA ) ) , mean ( array ( Ts ) , axis = 0 ) )
each action is equally likely .