Sets a property material to the material determined by the random seed. Public because editor script calls this method.