"Ken Pledger" <firstname.lastname@example.org> wrote in message news:ken.pledger-4DE6ED.email@example.com... > In article <firstname.lastname@example.org>, > Thomas Plehn <email@example.com> 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 ?