Hello,
I studying randomize() of variables within a class. I read that the void casting of randomize() hides the result status of randomize().
Anyway, the conclusion is that it is desirable to process the result of randomize() through an if statement or an assert statement.
I have questions.
-
What is the meaning of randomize’s void casting if the result of randomize is not needed? In this case, what is the difference between void casting and non-void casting?
-
Usually, randomize will be handled with if or assert statement, but in which case is casting the result of randomize() to void type?
Thank you for your reply.