Generate linear variable.