what is the equivalent of bgi(borland graphical interface) in visual c++?

How to use randomize in vc++?