Macaulay2 / Macaulay2/M2

random vs shuffle for a list

Open
#4,161 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Macaulay2
Stars
435
Forks
297
Avg merge
4d 20h
Merged PRs (30d)
11

Description

I regularly mistake random(List) to mean a random element of the list, until I remember it's actually shuffling the list.

It would be a breaking change, but I wish we had shuffle(List) do this job and random(List) just give a random element of a list.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named. Start by locating the implementation and usages of random(List), then determine the compatibility impact of changing its behavior and introducing shuffle(List). Done means the proposed API behavior is specified and covered by appropriate tests.

Written by the indexing model from the issue text.

Assessment

Domain
api
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.