Rent
2012-11-13 18:23:05
this is my first thing i've ever tried.. i joined 1-2 hours ago, so i'm a bit stuck
program Test;
^ whenever i play.. its shows 2 results, so i win and lose at the same time, just a lil help on how to resolve this would be great, ty !
program Test;
procedure RandomFunction;
var
i:integer;
begin
if (Random(100) < 60) then
Writeln('Congratulations you are a winner!')
else
Writeln('Aww, better luck next time!');
if (i> 60)then
begin
Writeln('Aww, better luck next time!');
end;
end;
begin
ClearDebug;
RandomFunction;
end.
^ whenever i play.. its shows 2 results, so i win and lose at the same time, just a lil help on how to resolve this would be great, ty !