History-Dependent Patterns in Randomly Perturbed Nematic Liquid Crystals