Show / Hide Table of Contents

Class SharedRandomExtensions

Inheritance
System.Object
SharedRandomExtensions
Namespace: Content.Shared.Random.Helpers
Assembly: Content.Shared.dll
Syntax
public static class SharedRandomExtensions : object

Methods

| Improve this Doc View Source

Pick(IWeightedRandomPrototype, IRobustRandom)

Declaration
public static string Pick(this IWeightedRandomPrototype prototype, IRobustRandom random = null)
Parameters
Type Name Description
IWeightedRandomPrototype prototype
Robust.Shared.Random.IRobustRandom random
Returns
Type Description
System.String
| Improve this Doc View Source

Pick(IWeightedRandomPrototype, Random)

Declaration
public static string Pick(this IWeightedRandomPrototype prototype, Random random)
Parameters
Type Name Description
IWeightedRandomPrototype prototype
System.Random random
Returns
Type Description
System.String
| Improve this Doc View Source

Pick(WeightedRandomFillSolutionPrototype, IRobustRandom)

Declaration
public static (string reagent, FixedPoint2 quantity) Pick(this WeightedRandomFillSolutionPrototype prototype, IRobustRandom random = null)
Parameters
Type Name Description
WeightedRandomFillSolutionPrototype prototype
Robust.Shared.Random.IRobustRandom random
Returns
Type Description
System.ValueTuple<System.String, FixedPoint2>
| Improve this Doc View Source

Pick(IRobustRandom, DatasetPrototype)

Declaration
public static string Pick(this IRobustRandom random, DatasetPrototype prototype)
Parameters
Type Name Description
Robust.Shared.Random.IRobustRandom random
DatasetPrototype prototype
Returns
Type Description
System.String
| Improve this Doc View Source

Pick(IRobustRandom, Dictionary<String, Single>)

Declaration
public static string Pick(this IRobustRandom random, Dictionary<string, float> weights)
Parameters
Type Name Description
Robust.Shared.Random.IRobustRandom random
Dictionary<System.String, System.Single> weights
Returns
Type Description
System.String
| Improve this Doc View Source

PickRandomFill(WeightedRandomFillSolutionPrototype, IRobustRandom)

Declaration
public static RandomFillSolution PickRandomFill(this WeightedRandomFillSolutionPrototype prototype, IRobustRandom random = null)
Parameters
Type Name Description
WeightedRandomFillSolutionPrototype prototype
Robust.Shared.Random.IRobustRandom random
Returns
Type Description
RandomFillSolution
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾