def get_random_color(alpha=1.0):
 from random import random
 if (alpha == 'random'):
  return [random(), random(), random(), random()]
 else:
  return [random(), random(), random(), alpha]

def get_random_color ( alpha = 1.0 ) : from random import random if ( alpha == 'random' ) : return [ random ( ) , random ( ) , random ( ) , random ( ) ] else : return [ random ( ) , random ( ) , random ( ) , alpha ]
returns a random color .