WooFL Posted December 2, 2015 Share Posted December 2, 2015 (edited) Hi. I'm writing a script in python,but I can't create a random number without giving it a seed.When I do give it a seed value, it always outputs the same value. Is there a way to randomize the seed value and to import pythons libraries so I could use the random module? Edited December 2, 2015 by WooFL Quote Link to comment Share on other sites More sharing options...
acey195 Posted December 2, 2015 Share Posted December 2, 2015 to get predictable results you always have to give a seed, but in python, you could something like the ((computer time in seconds+1)*large value) as a seed for instance. that should be random enough in most cases I think. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.