change: model format; add: template class for PrimaryGeneratorAction; add: random algorithm in PrimaryGeneratorAction;