modify gaussian samples to generic int type