[PR #2771] Add random_permutation #2084

Open
opened 2025-11-06 13:29:09 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/vinta/awesome-python/pull/2771
Author: @samderanova
Created: 10/15/2025
Status: 🔄 Open

Base: masterHead: add-random-permutation


📝 Commits (1)

📊 Changes

1 file changed (+1 additions, -0 deletions)

View changed files

📝 README.md (+1 -0)

📄 Description

What is this Python project?

random_permutation is a module that can provide a random permutation of a range of numbers from 0 to a given n-1 inclusive.

What's the difference between this Python project and similar ones?

While there are projects and individual functions/methods that generate permutations of objects, they generally do not work well for extraordinary large ranges as the resulting permutation would be directly stored and exhaust available memory. This library takes a different approach by storing the permutation in a generator object, making it extremely efficient to not only generate, but also to store and iterate over.

--

Anyone who agrees with this pull request could submit an Approve review to it.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/vinta/awesome-python/pull/2771 **Author:** [@samderanova](https://github.com/samderanova) **Created:** 10/15/2025 **Status:** 🔄 Open **Base:** `master` ← **Head:** `add-random-permutation` --- ### 📝 Commits (1) - [`1abb1b5`](https://github.com/vinta/awesome-python/commit/1abb1b5f9b568acaf92d82e94aed2132be3da013) Add random_permutation ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+1 -0) </details> ### 📄 Description ## What is this Python project? `random_permutation` is a module that can provide a random permutation of a range of numbers from 0 to a given `n`-1 inclusive. ## What's the difference between this Python project and similar ones? While there are projects and individual functions/methods that generate permutations of objects, they generally do not work well for extraordinary large ranges as the resulting permutation would be directly stored and exhaust available memory. This library takes a different approach by storing the permutation in a generator object, making it extremely efficient to not only generate, but also to store and iterate over. -- Anyone who agrees with this pull request could submit an *Approve* review to it. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-06 13:29:09 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/awesome-python#2084