Skip to content

jmssnr/shuffling-probability

Repository files navigation

Shuffle Probabilities

Consider a deck of 52 playing cards. After giving the deck a shuffle, where would you most likely find the original top card?

I created this small web-application based on Next.js and visx to give you the answer for several different types of shuffles.

demo

Development

To run the simulation models yourself, create a python environment and install the only dependency numpy:

python -m venv .venv 
pip install numpy

Calling model.py will then run the simulations and store the results in the data.json where it is picked up by the Next.js application.

About

Visualizing shuffling probabilities with visx

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy