• Home
  • API reference
  • Source code
Show / Hide Table of Contents
  • osrlib.Controllers
    • GameManager
  • osrlib.Core
    • Ability
    • AbilityType
    • Adventure
    • Alignment
    • Being
    • BeingTargetingEventArgs
    • BeingTargetingEventHandler
    • CharacterClass
    • Dungeon
    • Encounter
    • GameAction
    • GameActionEventArgs
    • GameActionEventHandler
    • GamePosition
    • Modifier
    • Party
    • Quest
    • User
    • Weapon
    • WeaponType
  • osrlib.Dice
    • DiceHand
    • DiceRoll
    • DiceRolledEventArgs
    • DiceRolledEventHandler
    • Die
  • osrlib.SaveLoad
    • SaveLoadLocal
    • SaveType
  • osrlib.Tests
    • CoreRulesTests
    • DiceTests
    • PartyGenerator
    • ReadMeTests
    • SaveLoadTests
    • SteppedBattleTests
  • osrlib.Utility
    • Randomizer

Class Randomizer

Utility class providing helper methods for working with random numbers.

Inheritance
System.Object
Randomizer
Inherited Members
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()
Namespace: osrlib.Utility
Assembly: osrlib.Core.dll
Syntax
public static class Randomizer

Methods

| Improve this Doc View Source

GetRandomInt(Int32, Int32)

Gets a random number between the minimum and maximum value (lower and upper inclusive).

Declaration
public static int GetRandomInt(int minVal, int maxVal)
Parameters
Type Name Description
System.Int32 minVal

The minimum value for the random range (inclusive).

System.Int32 maxVal

The maximum value for the random range (inclusive).

Returns
Type Description
System.Int32
  • Improve this Doc
  • View Source
Back to top Generated by DocFX