Fixed file generator algorithm for asc and desc with low value range