I am a beginner. As I know stdlibc++ v2 includes a random variable geneator class. but stdlibc++ v3 does not include those classes. what I want is to generate Normal random variable. anybody can tell me how to use stdlibc++ v3 to do this? Thanks!

just use this simple random number definition

#define getrandom( min, max ) ((rand() % (int)(((max) + 1) - (min))) + (min))

then use getrandom function as in the definition.
I forgot which class you need to use this definition properly, I think it's one of these.

#include <time.h>
#include <ctype.h>
#include <stdlib.h>
#include <iostream.h>

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.