White Elephant Order Shuffler

UniformFisher–Yateswhite-elephantturnorder,not automate steals,giftsoractualpartypermissions. Boundedoffline arithmetic/sampling only;not gambling advice,fair physical randomness,secure randomness or predictive certainty.

Description

A white-elephant gift exchange needs a turn order before its house rules are applied.

A white-elephant gift exchange needs a turn order before its house rules are applied.1

This tool shuffles the participant list and leaves gift selection and stealing rules to the event.

When to use White Elephant Order Shuffler

Use this tool to apply the stated white elephant order shuffler operation with an explicit input and unit basis.

How to use White Elephant Order Shuffler and how it works

  1. Establish the text or game convention described above.
  2. Enter seed, actualParticipants and run the tool.
  3. Read result.turnOrder using the output meanings below.
  4. If input is rejected, correct the stated type, range, ordering or alignment issue and rerun; review successful results under the declared convention.
Input fieldMeaningValue typeRequirement
seedNonblank reproducibility string, at most 256 characters; required even with a supplied random source.stringrequired; further conditions in the algorithm
actualParticipantsParticipants, on the basis specified in the algorithm.array of stringrequired; dense; align related rows as specified; at most 128 strings; 128 UTF-16 units each; further conditions in the algorithm

Require distinct nonblank participants. Copy the list and apply Fisher–Yates swaps from the last position downward using one advancing random source. A nonblank seed of at most 256 characters selects the existing seeded generator unless execution context supplies random. One source advances through the request; supplied samples must be finite in [0,1). These draws are not cryptographically secure.

The default source hashes the seed’s UTF-16 units into an integer state and advances a deterministic arithmetic generator for each sample. A supplied execution-context random source takes precedence; it must return finite values in [0,1). The required seed still must be nonblank and at most 256 characters. These draws are reproducible entertainment or sampling, without cryptographic unpredictability.2

turn order = Fisher–Yates shuffle(participants)

Apply the declared units, ordering and branch conditions.

Output fieldMeaningValue type
resultObject containing the declared output fields.object
result.turnOrderShuffled participant labels, each appearing once.array
json
{
  "input": {
    "seed": "batch51",
    "actualParticipants": [
      "A",
      "B",
      "C"
    ]
  },
  "output": {
    "result": {
      "turnOrder": [
        "C",
        "A",
        "B"
      ]
    }
  }
}

Limitations and assumptions

The output applies the declared operation to the values you supply. Establish the measurement basis, units, coefficients and any caller-selected rules before interpreting it. The tool does not independently collect or verify observations or decide whether a model or reference applies.

Supply explicit required fields with the documented types and dense aligned arrays. Unknown fields, wrong types and nonfinite numbers are rejected. Branch-specific constraints are explained above. A successful false boolean, negative signed difference, empty slice or unresolved tie is distinct from an input error. Very large inputs or outputs may be rejected by shared resource limits.

Alternative or Complementary methods

For a related operation, use Werewolf Role Dealer. Werewolf roles are dealt from a role inventory whose balance has already been chosen.

For a related operation, use Mafia Role Dealer. Mafia roles can be dealt after the organizer chooses the role inventory.

References

  1. White Elephant Order Shuffler — tool.io

  2. Existing seeded random generator — tool.io

Similar or alternative tools

  • Werewolf Role Dealer

    Werewolf roles are dealt from a role inventory whose balance has already been chosen.

  • Mafia Role Dealer

    Mafia roles can be dealt after the organizer chooses the role inventory.

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies