#NEWLINE# def reset( self , seed = None ) : #NEWLINE# #INDENT# 'Reset the seed for the random number generator.\n\n        The seed can be any integer and using the same\n        seed repeatedly will generate the same sequence\n        of random numbers multiple times. If no seed (or\n        an invalid seed) is given, the seed will be a\n        new randomized value.\n        ' #NEWLINE# if ( ( seed is not None ) and ( type ( seed ) is int ) ) : #NEWLINE# #INDENT# random . seed ( self ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# random . seed ( )