#111 Fix output of LCG to be in the desired range