Is der an equivalent function to srand(),the random number generator, in g++ compiler?

srand is a standard C++ function. So g++ also supports it. What is the problem you are getting?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.