# Struct Household.RandomRelation

A random relation, which is a wrapper around Relation instances between two people of certain AgeGroup values, used by Household.RandomConstellation.

`public readonly struct Household.RandomRelation`

- Inherited Members

- Extension Methods

## Constructors

### RandomRelation(AgeGroup, AgeGroup, GenealogyType, int)

Creates a new random relation with the given settings.

`public RandomRelation(AgeGroup firstPerson, AgeGroup secondPerson, GenealogyType genealogyType, int max)`

#### Parameters

`firstPerson`

AgeGroupThe age of the first person in this relation.

`secondPerson`

AgeGroupThe age of the second person in this relation.

`genealogyType`

GenealogyTypeThe generalogy type to apply.

`max`

intThe maximum amount of times that this random relation can be applied to household members of one household.

### RandomRelation(AgeGroup, AgeGroup, GenealogyType, RelationshipType, int)

Creates a new random relation with the given settings.

`public RandomRelation(AgeGroup firstPerson, AgeGroup secondPerson, GenealogyType genealogyType, RelationshipType relationshipType, int max)`

#### Parameters

`firstPerson`

AgeGroupThe age of the first person in this relation.

`secondPerson`

AgeGroupThe age of the second person in this relation.

`genealogyType`

GenealogyTypeThe generalogy type to apply.

`relationshipType`

RelationshipTypeThe relationship type to apply.

`max`

intThe maximum amount of times that this random relation can be applied to household members of one household.

### RandomRelation(AgeGroup, AgeGroup, RelationshipType, int)

Creates a new random relation with the given settings.

`public RandomRelation(AgeGroup firstPerson, AgeGroup secondPerson, RelationshipType relationshipType, int max)`

#### Parameters

`firstPerson`

AgeGroupThe age of the first person in this relation.

`secondPerson`

AgeGroupThe age of the second person in this relation.

`relationshipType`

RelationshipTypeThe relationship type to apply.

`max`

intThe maximum amount of times that this random relation can be applied to household members of one household.

### RandomRelation(AgeGroup, AgeGroup, RelationshipType, RomanceType, bool, int)

Creates a new random relation with the given settings.

`public RandomRelation(AgeGroup firstPerson, AgeGroup secondPerson, RelationshipType relationshipType, RomanceType romanceType, bool dating, int max)`

#### Parameters

`firstPerson`

AgeGroupThe age of the first person in this relation.

`secondPerson`

AgeGroupThe age of the second person in this relation.

`relationshipType`

RelationshipTypeThe relationship type to apply.

`romanceType`

RomanceTypeThe romance type to apply.

`dating`

boolWhether the people should be marked as dating.

`max`

int

## Fields

### FirstPerson

The age of the first person in this relation.

`public readonly AgeGroup FirstPerson`

#### Field Value

### Max

`public readonly int Max`

#### Field Value

### Relation

The underlying Relation that should be applied to the FirstPerson and SecondPerson.

`public readonly Household.Relation Relation`

#### Field Value

### SecondPerson

`public readonly AgeGroup SecondPerson`