Skip to content

Commit

Permalink
Ring.random_point accepts random seed
Browse files Browse the repository at this point in the history
  • Loading branch information
GDeLaurentis committed Nov 29, 2024
1 parent fabdbbb commit df19b84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions syngular/ring.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def zero_ideal(self):
from .ideal import Ideal
return Ideal(self, [])

def random_point(self, field):
def random_point(self, field, seed=None):
"""Returns a random numerical point in the given field on the zero ideal of the ring."""
j = self.zero_ideal()
return j.point_on_variety(field=field)
return j.point_on_variety(field=field, seed=seed)

0 comments on commit df19b84

Please sign in to comment.