Set a random seed prior to training sample extraction.