Added random number seed to SWAP