Following my previous question here : Compile a C library with Visual Studio 2010 ; I have a C project, with a source file I can\'t meaningfully change.
After fixing
you may use rand() function, its part of stdlib