############################################################
#     Building 'trand'
############################################################
% f77 -g -L/usr/local/lib trand.o -lp329f -o trand
############################################################
#     Output from 'trand' including example of simple
#     'foreach' loop in the C-shell
############################################################
% trand
 usage: trand <n>

% trand 10
   0.5138549804687500
   0.1757202148437500
   0.3086242675781250
   0.5345153808593750
   0.9476013183593750
   0.1717224121093750
   0.7022094726562500
   0.2264099121093750
   0.4947509765625000
   0.1246948242187500

 Average:   0.4200103759765625

% foreach n (10 100 1000 10000 100000)
? trand $n > /dev/null
? end

 Average:   0.4200103759765625

 Average:   0.5154736328125000

 Average:   0.5092929992675781

 Average:   0.5025000335693359

 Average:   0.5015412191772461