add rand constant and option for random pad generation