
function a = rcontrol( pv );

%
% a = rcontrol( pv )
% Produces a random accelaration for the follower car.
% Then parameter vector pv is 
% [time_step rtime max_acc min_acc max_velo min_velo bias track_length]
%

maa = pv(1,3);

a = (rand-0.5)*maa*2;
