### YamlMime:ManagedReference items: - uid: MLEM.Extensions.RandomExtensions commentId: T:MLEM.Extensions.RandomExtensions id: RandomExtensions parent: MLEM.Extensions children: - MLEM.Extensions.RandomExtensions.GetRandomEntry``1(System.Random,``0[]) - MLEM.Extensions.RandomExtensions.GetRandomEntry``1(System.Random,System.Collections.Generic.IList{``0}) - MLEM.Extensions.RandomExtensions.GetRandomWeightedEntry``1(System.Random,System.Collections.Generic.IList{``0},System.Func{``0,System.Int32}) langs: - csharp - vb name: RandomExtensions nameWithType: RandomExtensions fullName: MLEM.Extensions.RandomExtensions type: Class source: remote: path: MLEM/Extensions/RandomExtensions.cs branch: master repo: https://github.com/Ellpeck/MLEM id: RandomExtensions path: ../MLEM/Extensions/RandomExtensions.cs startLine: 8 assemblies: - MLEM namespace: MLEM.Extensions summary: "\nA set of extensions for dealing with \n" example: [] syntax: content: public static class RandomExtensions content.vb: Public Module RandomExtensions inheritance: - System.Object inheritedMembers: - System.Object.Equals(System.Object) - System.Object.Equals(System.Object,System.Object) - System.Object.GetHashCode - System.Object.GetType - System.Object.MemberwiseClone - System.Object.ReferenceEquals(System.Object,System.Object) - System.Object.ToString modifiers.csharp: - public - static - class modifiers.vb: - Public - Module - uid: MLEM.Extensions.RandomExtensions.GetRandomEntry``1(System.Random,``0[]) commentId: M:MLEM.Extensions.RandomExtensions.GetRandomEntry``1(System.Random,``0[]) id: GetRandomEntry``1(System.Random,``0[]) isExtensionMethod: true parent: MLEM.Extensions.RandomExtensions langs: - csharp - vb name: GetRandomEntry(Random, T[]) nameWithType: RandomExtensions.GetRandomEntry(Random, T[]) fullName: MLEM.Extensions.RandomExtensions.GetRandomEntry(System.Random, T[]) type: Method source: remote: path: MLEM/Extensions/RandomExtensions.cs branch: master repo: https://github.com/Ellpeck/MLEM id: GetRandomEntry path: ../MLEM/Extensions/RandomExtensions.cs startLine: 17 assemblies: - MLEM namespace: MLEM.Extensions summary: "\nGets a random entry from the given list with uniform chance.\n" example: [] syntax: content: public static T GetRandomEntry(this Random random, params T[] entries) parameters: - id: random type: System.Random description: The random - id: entries type: '{T}[]' description: The entries to choose from typeParameters: - id: T description: The entries' type return: type: '{T}' description: A random entry content.vb: >- Public Shared Function GetRandomEntry(Of T)(random As Random, ParamArray entries As T()) As T overload: MLEM.Extensions.RandomExtensions.GetRandomEntry* nameWithType.vb: RandomExtensions.GetRandomEntry(Of T)(Random, T()) modifiers.csharp: - public - static modifiers.vb: - Public - Shared fullName.vb: MLEM.Extensions.RandomExtensions.GetRandomEntry(Of T)(System.Random, T()) name.vb: GetRandomEntry(Of T)(Random, T()) - uid: MLEM.Extensions.RandomExtensions.GetRandomEntry``1(System.Random,System.Collections.Generic.IList{``0}) commentId: M:MLEM.Extensions.RandomExtensions.GetRandomEntry``1(System.Random,System.Collections.Generic.IList{``0}) id: GetRandomEntry``1(System.Random,System.Collections.Generic.IList{``0}) isExtensionMethod: true parent: MLEM.Extensions.RandomExtensions langs: - csharp - vb name: GetRandomEntry(Random, IList) nameWithType: RandomExtensions.GetRandomEntry(Random, IList) fullName: MLEM.Extensions.RandomExtensions.GetRandomEntry(System.Random, System.Collections.Generic.IList) type: Method source: remote: path: MLEM/Extensions/RandomExtensions.cs branch: master repo: https://github.com/Ellpeck/MLEM id: GetRandomEntry path: ../MLEM/Extensions/RandomExtensions.cs startLine: 22 assemblies: - MLEM namespace: MLEM.Extensions example: [] syntax: content: public static T GetRandomEntry(this Random random, IList entries) parameters: - id: random type: System.Random - id: entries type: System.Collections.Generic.IList{{T}} typeParameters: - id: T return: type: '{T}' content.vb: >- Public Shared Function GetRandomEntry(Of T)(random As Random, entries As IList(Of T)) As T overload: MLEM.Extensions.RandomExtensions.GetRandomEntry* nameWithType.vb: RandomExtensions.GetRandomEntry(Of T)(Random, IList(Of T)) modifiers.csharp: - public - static modifiers.vb: - Public - Shared fullName.vb: MLEM.Extensions.RandomExtensions.GetRandomEntry(Of T)(System.Random, System.Collections.Generic.IList(Of T)) name.vb: GetRandomEntry(Of T)(Random, IList(Of T)) - uid: MLEM.Extensions.RandomExtensions.GetRandomWeightedEntry``1(System.Random,System.Collections.Generic.IList{``0},System.Func{``0,System.Int32}) commentId: M:MLEM.Extensions.RandomExtensions.GetRandomWeightedEntry``1(System.Random,System.Collections.Generic.IList{``0},System.Func{``0,System.Int32}) id: GetRandomWeightedEntry``1(System.Random,System.Collections.Generic.IList{``0},System.Func{``0,System.Int32}) isExtensionMethod: true parent: MLEM.Extensions.RandomExtensions langs: - csharp - vb name: GetRandomWeightedEntry(Random, IList, Func) nameWithType: RandomExtensions.GetRandomWeightedEntry(Random, IList, Func) fullName: MLEM.Extensions.RandomExtensions.GetRandomWeightedEntry(System.Random, System.Collections.Generic.IList, System.Func) type: Method source: remote: path: MLEM/Extensions/RandomExtensions.cs branch: master repo: https://github.com/Ellpeck/MLEM id: GetRandomWeightedEntry path: ../MLEM/Extensions/RandomExtensions.cs startLine: 36 assemblies: - MLEM namespace: MLEM.Extensions summary: "\nReturns a random entry from the given list based on the specified weight function.\nA higher weight for an entry increases its likeliness of being picked.\n" example: [] syntax: content: public static T GetRandomWeightedEntry(this Random random, IList entries, Func weightFunc) parameters: - id: random type: System.Random description: The random - id: entries type: System.Collections.Generic.IList{{T}} description: The entries to choose from - id: weightFunc type: System.Func{{T},System.Int32} description: A function that applies weight to each entry typeParameters: - id: T description: The entries' type return: type: '{T}' description: A random entry, based on the entries' weight content.vb: >- Public Shared Function GetRandomWeightedEntry(Of T)(random As Random, entries As IList(Of T), weightFunc As Func(Of T, Integer)) As T overload: MLEM.Extensions.RandomExtensions.GetRandomWeightedEntry* exceptions: - type: System.IndexOutOfRangeException commentId: T:System.IndexOutOfRangeException description: If the weight function returns different weights for the same entry nameWithType.vb: RandomExtensions.GetRandomWeightedEntry(Of T)(Random, IList(Of T), Func(Of T, Int32)) modifiers.csharp: - public - static modifiers.vb: - Public - Shared fullName.vb: MLEM.Extensions.RandomExtensions.GetRandomWeightedEntry(Of T)(System.Random, System.Collections.Generic.IList(Of T), System.Func(Of T, System.Int32)) name.vb: GetRandomWeightedEntry(Of T)(Random, IList(Of T), Func(Of T, Int32)) references: - uid: System.Random commentId: T:System.Random parent: System isExternal: true name: Random nameWithType: Random fullName: System.Random - uid: MLEM.Extensions commentId: N:MLEM.Extensions name: MLEM.Extensions nameWithType: MLEM.Extensions fullName: MLEM.Extensions - uid: System.Object commentId: T:System.Object parent: System isExternal: true name: Object nameWithType: Object fullName: System.Object - uid: System.Object.Equals(System.Object) commentId: M:System.Object.Equals(System.Object) parent: System.Object isExternal: true name: Equals(Object) nameWithType: Object.Equals(Object) fullName: System.Object.Equals(System.Object) spec.csharp: - uid: System.Object.Equals(System.Object) name: Equals nameWithType: Object.Equals fullName: System.Object.Equals isExternal: true - name: ( nameWithType: ( fullName: ( - uid: System.Object name: Object nameWithType: Object fullName: System.Object isExternal: true - name: ) nameWithType: ) fullName: ) spec.vb: - uid: System.Object.Equals(System.Object) name: Equals nameWithType: Object.Equals fullName: System.Object.Equals isExternal: true - name: ( nameWithType: ( fullName: ( - uid: System.Object name: Object nameWithType: Object fullName: System.Object isExternal: true - name: ) nameWithType: ) fullName: ) - uid: System.Object.Equals(System.Object,System.Object) commentId: M:System.Object.Equals(System.Object,System.Object) parent: System.Object isExternal: true name: Equals(Object, Object) nameWithType: Object.Equals(Object, Object) fullName: System.Object.Equals(System.Object, System.Object) spec.csharp: - uid: System.Object.Equals(System.Object,System.Object) name: Equals nameWithType: Object.Equals fullName: System.Object.Equals isExternal: true - name: ( nameWithType: ( fullName: ( - uid: System.Object name: Object nameWithType: Object fullName: System.Object isExternal: true - name: ', ' nameWithType: ', ' fullName: ', ' - uid: System.Object name: Object nameWithType: Object fullName: System.Object isExternal: true - name: ) nameWithType: ) fullName: ) spec.vb: - uid: System.Object.Equals(System.Object,System.Object) name: Equals nameWithType: Object.Equals fullName: System.Object.Equals isExternal: true - name: ( nameWithType: ( fullName: ( - uid: System.Object name: Object nameWithType: Object fullName: System.Object isExternal: true - name: ', ' nameWithType: ', ' fullName: ', ' - uid: System.Object name: Object nameWithType: Object fullName: System.Object isExternal: true - name: ) nameWithType: ) fullName: ) - uid: System.Object.GetHashCode commentId: M:System.Object.GetHashCode parent: System.Object isExternal: true name: GetHashCode() nameWithType: Object.GetHashCode() fullName: System.Object.GetHashCode() spec.csharp: - uid: System.Object.GetHashCode name: GetHashCode nameWithType: Object.GetHashCode fullName: System.Object.GetHashCode isExternal: true - name: ( nameWithType: ( fullName: ( - name: ) nameWithType: ) fullName: ) spec.vb: - uid: System.Object.GetHashCode name: GetHashCode nameWithType: Object.GetHashCode fullName: System.Object.GetHashCode isExternal: true - name: ( nameWithType: ( fullName: ( - name: ) nameWithType: ) fullName: ) - uid: System.Object.GetType commentId: M:System.Object.GetType parent: System.Object isExternal: true name: GetType() nameWithType: Object.GetType() fullName: System.Object.GetType() spec.csharp: - uid: System.Object.GetType name: GetType nameWithType: Object.GetType fullName: System.Object.GetType isExternal: true - name: ( nameWithType: ( fullName: ( - name: ) nameWithType: ) fullName: ) spec.vb: - uid: System.Object.GetType name: GetType nameWithType: Object.GetType fullName: System.Object.GetType isExternal: true - name: ( nameWithType: ( fullName: ( - name: ) nameWithType: ) fullName: ) - uid: System.Object.MemberwiseClone commentId: M:System.Object.MemberwiseClone parent: System.Object isExternal: true name: MemberwiseClone() nameWithType: Object.MemberwiseClone() fullName: System.Object.MemberwiseClone() spec.csharp: - uid: System.Object.MemberwiseClone name: MemberwiseClone nameWithType: Object.MemberwiseClone fullName: System.Object.MemberwiseClone isExternal: true - name: ( nameWithType: ( fullName: ( - name: ) nameWithType: ) fullName: ) spec.vb: - uid: System.Object.MemberwiseClone name: MemberwiseClone nameWithType: Object.MemberwiseClone fullName: System.Object.MemberwiseClone isExternal: true - name: ( nameWithType: ( fullName: ( - name: ) nameWithType: ) fullName: ) - uid: System.Object.ReferenceEquals(System.Object,System.Object) commentId: M:System.Object.ReferenceEquals(System.Object,System.Object) parent: System.Object isExternal: true name: ReferenceEquals(Object, Object) nameWithType: Object.ReferenceEquals(Object, Object) fullName: System.Object.ReferenceEquals(System.Object, System.Object) spec.csharp: - uid: System.Object.ReferenceEquals(System.Object,System.Object) name: ReferenceEquals nameWithType: Object.ReferenceEquals fullName: System.Object.ReferenceEquals isExternal: true - name: ( nameWithType: ( fullName: ( - uid: System.Object name: Object nameWithType: Object fullName: System.Object isExternal: true - name: ', ' nameWithType: ', ' fullName: ', ' - uid: System.Object name: Object nameWithType: Object fullName: System.Object isExternal: true - name: ) nameWithType: ) fullName: ) spec.vb: - uid: System.Object.ReferenceEquals(System.Object,System.Object) name: ReferenceEquals nameWithType: Object.ReferenceEquals fullName: System.Object.ReferenceEquals isExternal: true - name: ( nameWithType: ( fullName: ( - uid: System.Object name: Object nameWithType: Object fullName: System.Object isExternal: true - name: ', ' nameWithType: ', ' fullName: ', ' - uid: System.Object name: Object nameWithType: Object fullName: System.Object isExternal: true - name: ) nameWithType: ) fullName: ) - uid: System.Object.ToString commentId: M:System.Object.ToString parent: System.Object isExternal: true name: ToString() nameWithType: Object.ToString() fullName: System.Object.ToString() spec.csharp: - uid: System.Object.ToString name: ToString nameWithType: Object.ToString fullName: System.Object.ToString isExternal: true - name: ( nameWithType: ( fullName: ( - name: ) nameWithType: ) fullName: ) spec.vb: - uid: System.Object.ToString name: ToString nameWithType: Object.ToString fullName: System.Object.ToString isExternal: true - name: ( nameWithType: ( fullName: ( - name: ) nameWithType: ) fullName: ) - uid: System commentId: N:System isExternal: true name: System nameWithType: System fullName: System - uid: MLEM.Extensions.RandomExtensions.GetRandomEntry* commentId: Overload:MLEM.Extensions.RandomExtensions.GetRandomEntry name: GetRandomEntry nameWithType: RandomExtensions.GetRandomEntry fullName: MLEM.Extensions.RandomExtensions.GetRandomEntry - uid: '{T}[]' isExternal: true name: T[] nameWithType: T[] fullName: T[] nameWithType.vb: T() fullName.vb: T() name.vb: T() spec.csharp: - name: T nameWithType: T fullName: T - name: '[]' nameWithType: '[]' fullName: '[]' spec.vb: - name: T nameWithType: T fullName: T - name: () nameWithType: () fullName: () - uid: '{T}' commentId: '!:T' definition: T name: T nameWithType: T fullName: T - uid: T name: T nameWithType: T fullName: T - uid: MLEM.Extensions.RandomExtensions.GetRandomEntry``1(System.Random,``0[]) commentId: M:MLEM.Extensions.RandomExtensions.GetRandomEntry``1(System.Random,``0[]) isExternal: true - uid: System.Collections.Generic.IList{{T}} commentId: T:System.Collections.Generic.IList{``0} parent: System.Collections.Generic definition: System.Collections.Generic.IList`1 name: IList nameWithType: IList fullName: System.Collections.Generic.IList nameWithType.vb: IList(Of T) fullName.vb: System.Collections.Generic.IList(Of T) name.vb: IList(Of T) spec.csharp: - uid: System.Collections.Generic.IList`1 name: IList nameWithType: IList fullName: System.Collections.Generic.IList isExternal: true - name: < nameWithType: < fullName: < - name: T nameWithType: T fullName: T - name: '>' nameWithType: '>' fullName: '>' spec.vb: - uid: System.Collections.Generic.IList`1 name: IList nameWithType: IList fullName: System.Collections.Generic.IList isExternal: true - name: '(Of ' nameWithType: '(Of ' fullName: '(Of ' - name: T nameWithType: T fullName: T - name: ) nameWithType: ) fullName: ) - uid: System.Collections.Generic.IList`1 commentId: T:System.Collections.Generic.IList`1 isExternal: true name: IList nameWithType: IList fullName: System.Collections.Generic.IList nameWithType.vb: IList(Of T) fullName.vb: System.Collections.Generic.IList(Of T) name.vb: IList(Of T) spec.csharp: - uid: System.Collections.Generic.IList`1 name: IList nameWithType: IList fullName: System.Collections.Generic.IList isExternal: true - name: < nameWithType: < fullName: < - name: T nameWithType: T fullName: T - name: '>' nameWithType: '>' fullName: '>' spec.vb: - uid: System.Collections.Generic.IList`1 name: IList nameWithType: IList fullName: System.Collections.Generic.IList isExternal: true - name: '(Of ' nameWithType: '(Of ' fullName: '(Of ' - name: T nameWithType: T fullName: T - name: ) nameWithType: ) fullName: ) - uid: System.Collections.Generic commentId: N:System.Collections.Generic isExternal: true name: System.Collections.Generic nameWithType: System.Collections.Generic fullName: System.Collections.Generic - uid: System.IndexOutOfRangeException commentId: T:System.IndexOutOfRangeException isExternal: true - uid: MLEM.Extensions.RandomExtensions.GetRandomWeightedEntry* commentId: Overload:MLEM.Extensions.RandomExtensions.GetRandomWeightedEntry name: GetRandomWeightedEntry nameWithType: RandomExtensions.GetRandomWeightedEntry fullName: MLEM.Extensions.RandomExtensions.GetRandomWeightedEntry - uid: System.Func{{T},System.Int32} commentId: T:System.Func{``0,System.Int32} parent: System definition: System.Func`2 name: Func nameWithType: Func fullName: System.Func nameWithType.vb: Func(Of T, Int32) fullName.vb: System.Func(Of T, System.Int32) name.vb: Func(Of T, Int32) spec.csharp: - uid: System.Func`2 name: Func nameWithType: Func fullName: System.Func isExternal: true - name: < nameWithType: < fullName: < - name: T nameWithType: T fullName: T - name: ', ' nameWithType: ', ' fullName: ', ' - uid: System.Int32 name: Int32 nameWithType: Int32 fullName: System.Int32 isExternal: true - name: '>' nameWithType: '>' fullName: '>' spec.vb: - uid: System.Func`2 name: Func nameWithType: Func fullName: System.Func isExternal: true - name: '(Of ' nameWithType: '(Of ' fullName: '(Of ' - name: T nameWithType: T fullName: T - name: ', ' nameWithType: ', ' fullName: ', ' - uid: System.Int32 name: Int32 nameWithType: Int32 fullName: System.Int32 isExternal: true - name: ) nameWithType: ) fullName: ) - uid: System.Func`2 commentId: T:System.Func`2 isExternal: true name: Func nameWithType: Func fullName: System.Func nameWithType.vb: Func(Of T, TResult) fullName.vb: System.Func(Of T, TResult) name.vb: Func(Of T, TResult) spec.csharp: - uid: System.Func`2 name: Func nameWithType: Func fullName: System.Func isExternal: true - name: < nameWithType: < fullName: < - name: T nameWithType: T fullName: T - name: ', ' nameWithType: ', ' fullName: ', ' - name: TResult nameWithType: TResult fullName: TResult - name: '>' nameWithType: '>' fullName: '>' spec.vb: - uid: System.Func`2 name: Func nameWithType: Func fullName: System.Func isExternal: true - name: '(Of ' nameWithType: '(Of ' fullName: '(Of ' - name: T nameWithType: T fullName: T - name: ', ' nameWithType: ', ' fullName: ', ' - name: TResult nameWithType: TResult fullName: TResult - name: ) nameWithType: ) fullName: )