# RandomEngine struct

Namespace: [Grasshopper2.Types.Random](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.types.random.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
[IoId("00000000-4208-446C-B1B3-46C97D6E51E4")]
public readonly struct RandomEngine : IStorable, IEquatable<RandomEngine>, IComparable<RandomEngine>
```

Combination of a random algorithm and seed value.

## Constructors

- [RandomEngine](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.random.randomengine/ctor.md): (2 overloads) Create a new engine.

## Properties

- [Algorithm](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.random.randomengine/algorithm.md): Gets the algorithm to use.
- [Default](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.random.randomengine/default.md): (static) Gets the default random engine.
- [Seed](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.random.randomengine/seed.md): Seed for first value.

## Methods

- [CompareTo](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.random.randomengine/compareto.md)
- [CreateInstance](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.random.randomengine/createinstance.md): Create a new instance of the appropriate random engine.
- [Equals](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.random.randomengine/equals.md): (2 overloads)
- [GetHashCode](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.random.randomengine/gethashcode.md)
- [Store](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.random.randomengine/store.md)
- [ToString](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.random.randomengine/tostring.md)
- [TryParse](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.random.randomengine/tryparse.md): (static)
