lundi 16 septembre 2019

How to get RANDOM numbers in PASCAL

I have problems to generate random numbers in PASCAL and I do not know the reason You can watch the compilation error here

PROGRAM RANDOM;

USES CRT;

VAR 
A : INTEGER = RANDOM(100);

BEGIN 
RANDOMIZE();
WRITE(A);
READKEY;
END;




Aucun commentaire:

Enregistrer un commentaire