Home

[Package Index | Mudlib Index | Effect Index]

File /secure/simul_efun/roll_MdN.c

Cotains some simul_efuns.

Written by Pinkfish

Method index

  • roll_MdN(int, int)
    This method rolls a bunch of dice to get a nice weighted medium.

Public Functions

These are functions that everyone can access.

.

    roll_MdN
    int roll_MdN(int dice,
                 int sides)
    

    This method rolls a bunch of dice to get a nice weighted medium.
    • Parameters:
      dice - the number of dice to roll
      sides - the number of sides each dice has
    • Returns:
      the total of the rolls
    • See also:
      efun::random() and shuffle()
    • Example:
      roll_MdN(3, 6);
      roll_MdN(1, 20);
      
Valid HTML 4.01 Transitional
Valid CSS!
Read More