Fixing random = in code