The reason this error is presented is that you call the function random from unit system (or at least i assume that is that is your intention).
But because your program is also named random, the compiler thinks you want to access a definition from your program.
(try replacing the line x := Random; with x := Random.x; (it magically works

)
To solve it either:
- rename your program e.g. to random1
- replace the line with the call to the random function to System.Random
Do note however that your use of the random function is incorrect, so you are presented with yet another error when trying to compile, see also
here.
edit: typos removed