Show / Hide Table of Contents

Class RandomSystem

Inheritance
System.Object
RandomSystem
Namespace: Content.Shared.Random
Assembly: Content.Shared.dll
Syntax
public sealed class RandomSystem : EntitySystem

Methods

| Improve this Doc View Source

GetBudgetEntry(ref Single, ref Single, IList<IBudgetEntry>, Random)

Declaration
public IBudgetEntry GetBudgetEntry(ref float budget, ref float probSum, IList<IBudgetEntry> entries, Random random)
Parameters
Type Name Description
System.Single budget
System.Single probSum
IList<IBudgetEntry> entries
System.Random random
Returns
Type Description
IBudgetEntry
| Improve this Doc View Source

GetProbEntry(IEnumerable<IProbEntry>, Single, Random)

Gets a random entry based on each entry having a different probability.

Declaration
public IProbEntry GetProbEntry(IEnumerable<IProbEntry> entries, float probSum, Random random)
Parameters
Type Name Description
IEnumerable<IProbEntry> entries
System.Single probSum
System.Random random
Returns
Type Description
IProbEntry
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾