"Ken Pledger" <email@example.com> wrote in message news:ken.pledger-4DE6ED.firstname.lastname@example.org... > In article <email@example.com>, > Thomas Plehn <firstname.lastname@example.org> wrote: > >> while(true) >> >> rr = rand(1,50); >> >> des = rand(1,50); >> >> diff = rr-des; >> >> if(min(diff) + max(des) > max(rr)) >> break; >> else >> disp(1); %need to know if this is always the case >> end >> >> >> end > > > > Would you mind writing it without computer code please? > > Ken Pledger.
he is not seeding his randoms => problem
if a - b + b > a then break (?)
why min( ) or max( ) ? where is storage for a table ??
where is disp( ) defined ? is it a counter that starts at 1 ?