Added CodeGen to <Statement_Random> (+ other Bugfixes)