cards


cards, a Python code which provides some useful functions when modeling processes involving a deck of cards, including switching between rank and suit or numeric index, return a symbol corresponding to a numeric index, and applying a perfect shuffle to a deck of 52.

Licensing:

The information on this web page is distributed under the MIT license.

Languages:

cards is available in a Python version.

Related Data and Programs:

combo, a Python code which includes routines for ranking, unranking, enumerating and randomly selecting balanced sequences, cycles, graphs, gray codes, subsets, partitions, permutations, restricted growth functions, pruefer codes and trees.

python_combinatorics, a Python code which considers a variety of problems in combinatorics involving counting, combinations, permutations, and so on.

Source Code:


Last revised on 16 February 2025.