Skip to content
HALOWERK

Gamingwerk

game shuffle permutation cycles

Return permutation cycles, parity and repeated-shuffle source positions for a supplied deck permutation.

POST https://gaming.halowerk.com/v1/game-shuffle-permutation-cycles

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
permutationarrayYes
repeatsintegerYes
Show full input schema
{
  "type": "object",
  "properties": {
    "permutation": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 0,
        "maximum": 199
      },
      "maxItems": 200,
      "minItems": 1
    },
    "repeats": {
      "type": "integer",
      "minimum": 0,
      "maximum": 1000000000
    }
  },
  "required": [
    "permutation",
    "repeats"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "permutation": [
    1,
    2,
    0
  ],
  "repeats": 2
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-18 UTC.

More endpoints in this hub

All endpoints in this hub โ†’