mirror of
https://github.com/vinta/awesome-python.git
synced 2026-03-22 22:20:49 -05:00
[PR #2771] Add random_permutation #2084
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/vinta/awesome-python/pull/2771
Author: @samderanova
Created: 10/15/2025
Status: 🔄 Open
Base:
master← Head:add-random-permutation📝 Commits (1)
1abb1b5Add random_permutation📊 Changes
1 file changed (+1 additions, -0 deletions)
View changed files
📝
README.md(+1 -0)📄 Description
What is this Python project?
random_permutationis a module that can provide a random permutation of a range of numbers from 0 to a givenn-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.