Add RandomCheck similar to NullCheck.

Refs #4896
Clean up indentation.
Merge branch 'feature/randomcheck-4896' into next

Fixes #4896