Add input and set random seed