Skip to content

["Non-digraphical integer sequence" exception.] Random.seed() maybe generate an unavailable list that cannot make a map.#1

Open
RavenLite wants to merge 2 commits into
migai:masterfrom
RavenLite:master
Open

["Non-digraphical integer sequence" exception.] Random.seed() maybe generate an unavailable list that cannot make a map.#1
RavenLite wants to merge 2 commits into
migai:masterfrom
RavenLite:master

Conversation

@RavenLite

Copy link
Copy Markdown

Hello professor,
I add an Exception Handling.
Maybe we cannot generate a correct map in some random list.
For example, 20164936, 20164937 will throw a "Non-digraphical integer sequence" exception.
I add a while loop to find an available list. I expand student_id 10 times to ensure its uniqueness.

…andom list. I add a while to find an available list. I expand student_id 10 times to ensure its uniqueness.
@RavenLite RavenLite changed the title ["Non-digraphical integer sequence" exception.] Random.seed() maybe generate a unavailable list that cannot make a map. ["Non-digraphical integer sequence" exception.] Random.seed() maybe generate an unavailable list that cannot make a map. Nov 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant