checking input

I have generated a random number selection to be displayed in 6 text boxes but I don't know how to check the random numbers against a fixed number - could someone help?
[172 byte] By [AbsoluteBeginner] at [2008-1-16]