script for seed generation