Add random field to main class