Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: et the current seed value in Singular ( not the initial one)
PostPosted: Sat Apr 19, 2014 3:18 pm 
is it possible to get the current seed value in Singular ( not the initial one)?
If it is, how?


This is necessary to reproduce bugs in long tests where an error
occurs only in rare cases for a specific seed...


Thanks,


Jack


Report this post
Top
  
Reply with quote  
 Post subject: Re: et the current seed value in Singular ( not the initial one)
PostPosted: Mon Apr 21, 2014 6:13 pm 

Joined: Wed May 25, 2005 4:16 pm
Posts: 275
To set the seed value:
system("--random",<seed>);

and this is then the current seed value as we are not changing the past.
(see
http://www.singular.uni-kl.de/Manual/4-0-0/sing_400.htm
)


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: et the current seed value in Singular ( not the initial one)
PostPosted: Wed Apr 23, 2014 1:19 pm 
The question was how to _get_ the current random seed in Singular (not the initial value)

Is that a valid question?


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

It is currently Fri May 13, 2022 10:58 am
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group