AceyDucey/pascal: Move Randomize()

Randomize() should be called only once and as soon as possible.
This commit is contained in:
baka0815
2022-01-03 18:24:09 +01:00
parent 5ee452189a
commit 6977afdef0
2 changed files with 2 additions and 2 deletions

View File

@@ -85,6 +85,7 @@ end;
constructor TGame.Create;
begin
Randomize;
FDeck:= TDeck.Create;
end;
@@ -99,7 +100,6 @@ begin
ClrScr;
PrintGreeting;
repeat
Randomize;
FStash:= 100;
repeat
PrintBalance;

View File

@@ -118,10 +118,10 @@ begin
end;
begin
Randomize;
ClrScr;
PrintGreeting;
repeat
Randomize;
Stash:= 100;
repeat
PrintBalance;