Preparing mex version for Windows

random() is not recognized by VS2010