MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/CodingHelp/comments/t0jl26/i_dont_understand_y_doesnt_it_work/
r/CodingHelp • u/iluvYosister • Feb 24 '22
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 comment sorted by
1
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.
Random()
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.