Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

random_subposet does not use set_random_seed #17037

Closed
jm58660 mannequin opened this issue Sep 25, 2014 · 8 comments
Closed

random_subposet does not use set_random_seed #17037

jm58660 mannequin opened this issue Sep 25, 2014 · 8 comments

Comments

@jm58660
Copy link
Mannequin

jm58660 mannequin commented Sep 25, 2014

For example

P=Poset({'a':['b']})
for i in range(1,10):
    set_random_seed(42)
    print P.random_subposet(0.5)

shows this behaviour. Should use sage.misc.prandom.

CC: @nathanncohen

Component: combinatorics

Author: Jori Mäntysalo

Branch/Commit: d6d8f05

Reviewer: Nathann Cohen

Issue created by migration from https://trac.sagemath.org/ticket/17037

@jm58660 jm58660 mannequin added this to the sage-6.4 milestone Sep 25, 2014
@jm58660 jm58660 mannequin added c: combinatorics labels Sep 25, 2014
@jm58660

This comment has been minimized.

@jm58660
Copy link
Mannequin Author

jm58660 mannequin commented Sep 25, 2014

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Sep 25, 2014

Branch pushed to git repo; I updated commit sha1. New commits:

d6d8f05Arghs, again other code within same file. Corrected.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Sep 25, 2014

Commit: d6d8f05

@jm58660
Copy link
Mannequin Author

jm58660 mannequin commented Sep 25, 2014

Author: Jori Mäntysalo

@jm58660
Copy link
Mannequin Author

jm58660 mannequin commented Sep 25, 2014

comment:4

This was a simple fix.

@jm58660 jm58660 mannequin added the s: needs review label Sep 25, 2014
@nathanncohen
Copy link
Mannequin

nathanncohen mannequin commented Sep 30, 2014

Reviewer: Nathann Cohen

@vbraun
Copy link
Member

vbraun commented Oct 2, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant