Create constantGenerator