Creating an object with all properties set at random in c++

I have class called Person:
1
2
3
4
5
6
7
8
9
10
11
 class Person{
private:
    string name;
    string lastName;
    int age;
    static int id;
public:
    Person();
    Person(const Person& p);
    Person(string n, string ln, int a);
    ~Person();

i need to create static class method that creates and returns an object of type Person, with all properties set at random, does someone know how can i start with this?
first, define what a 'random' string variable means to YOU.
As Jonnin says, what's acceptable?

I see age is an int, so is any random value from -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807 (64 bit int) acceptable?
Topic archived. No new replies allowed.