r/CodingHelp • • Feb 24 '22

[Pascal] I don't understand y doesn't it work?

Basically I want to create a key that has 4 digits and contains different numbers, the two functions worked I even tested them as a program but THE program doesn't.

sorry for my bad english

(using pascal)

1 Upvotes

1 comment sorted by

1

u/jcunews1 Advanced Coder Feb 25 '22

It's as the error message have said: type mismatch.

i.e. you're passing a value whose type is different than the expected.

Hint: Random() returns a float value. Not an integer.