Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Added Magma example
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis committed May 26, 2015
1 parent 141e8e9 commit 33abf28
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/sage/interfaces/magma.py
Expand Up @@ -336,8 +336,16 @@ def __init__(self, maxread=10000, script_subdirectory=None,

def set_seed(self, seed=None):
"""
Sets the seed for R interpeter.
Sets the seed for the Magma interpeter.
The seed should be an integer.
EXAMPLES::
sage: m = Magma()
sage: m.set_seed(1)
1
sage: [m.Random(100) for i in range(5)]
[95, 20, 61, 59, 24]
"""
if seed is None:
seed = self.rand_seed()
Expand Down

0 comments on commit 33abf28

Please sign in to comment.