: Random module missing?
On Wed, Sep 23, 2009 at 5:00 PM, Brown, Rodrick wrote:
> I seen some documentation about random.random() but my version seems to be
> broken?
>
> Python 2.3.4 (#1, Jul 16 2009, 07:03:37) [GCC 3.4.6 20060404 (Red Hat
> 3.4.6-11)] on linux2 Type "help&quo
On 2009-09-23 16:00 PM, Brown, Rodrick wrote:
I seen some documentation about random.random() but my version seems to be
broken?
Python 2.3.4 (#1, Jul 16 2009, 07:03:37)
[GCC 3.4.6 20060404 (Red Hat 3.4.6-11)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
imp
On Wed, Sep 23, 2009 at 5:00 PM, Brown, Rodrick wrote:
> I seen some documentation about random.random() but my version seems to be
> broken?
>
> Python 2.3.4 (#1, Jul 16 2009, 07:03:37)
> [GCC 3.4.6 20060404 (Red Hat 3.4.6-11)] on linux2
> Type "help", "copyright", "credits" or "license" for mor
On Mar 4, 12:33 am, "Diez B. Roggisch" wrote:
> > So far I get the same results under Mac OS X, Windows, and Linux
> > (Google App Engine). I'm particularly interested in getting the same
> > results under the Google App Engine even as Google upgrades its
> > servers over time.
>
> I just had a l
Paul Rubin schrieb:
"Diez B. Roggisch" writes:
Random uses AFAIK rand/srand from the stdlib.h of your platform (*nix,
no idea how that beast is called in redmond).
According to http://docs.python.org/library/random.html
it uses Mersenne Twister.
Yeah, I figured that out later, sorry for th
"Diez B. Roggisch" writes:
> Random uses AFAIK rand/srand from the stdlib.h of your platform (*nix,
> no idea how that beast is called in redmond).
According to http://docs.python.org/library/random.html
it uses Mersenne Twister.
--
http://mail.python.org/mailman/listinfo/python-list
So far I get the same results under Mac OS X, Windows, and Linux
(Google App Engine). I'm particularly interested in getting the same
results under the Google App Engine even as Google upgrades its
servers over time.
I just had a look into the python source - and I was wrong, it appears
rando
On Mar 4, 2:26 am, "Diez B. Roggisch" wrote:
> Amir Michail schrieb:
>
> > On Mar 3, 10:05 pm, Chris Rebert wrote:
> >> On Tue, Mar 3, 2009 at 6:59 PM, Amir Michail wrote:
> >>> Hi,
> >>> Is it the case that the random module will always give the same
> >>> results if given the same seed across
Amir Michail schrieb:
On Mar 3, 10:05 pm, Chris Rebert wrote:
On Tue, Mar 3, 2009 at 6:59 PM, Amir Michail wrote:
Hi,
Is it the case that the random module will always give the same
results if given the same seed across all configurations (e.g.,
architectures, compilers, etc.)?
Your question
On Mar 3, 6:59 pm, Amir Michail wrote:
> Hi,
>
> Is it the case that the random module will always give the same
> results if given the same seed across all configurations (e.g.,
> architectures, compilers, etc.)?
If you need a repeatable sequence, such as for unit testing, you can
subclass ran
On Tue, Mar 3, 2009 at 7:11 PM, Amir Michail wrote:
> On Mar 3, 10:05 pm, Chris Rebert wrote:
>> On Tue, Mar 3, 2009 at 6:59 PM, Amir Michail wrote:
>> > Hi,
>>
>> > Is it the case that the random module will always give the same
>> > results if given the same seed across all configurations (e.g
On Mar 3, 10:05 pm, Chris Rebert wrote:
> On Tue, Mar 3, 2009 at 6:59 PM, Amir Michail wrote:
> > Hi,
>
> > Is it the case that the random module will always give the same
> > results if given the same seed across all configurations (e.g.,
> > architectures, compilers, etc.)?
>
> Your question is
On Tue, Mar 3, 2009 at 6:59 PM, Amir Michail wrote:
> Hi,
>
> Is it the case that the random module will always give the same
> results if given the same seed across all configurations (e.g.,
> architectures, compilers, etc.)?
Your question is vague. Define what you mean by "same results" in this
Moishy Gluck wrote:
> I am using the random module to generate a session tracker. I use this
> code to generate a random number "random.random() * 1"
> The session is stored in a mysql database under the field session_id.
> The problem is when I try to submit the random number i
>> Is Mersenne Twister currently available at all in Jython, for example?
Googling for "java mersenne twister" provides multiple hits including:
http://www.axlradius.com/freestuff/Free.htm#MT
Raymond
--
http://mail.python.org/mailman/listinfo/python-list
Raymond Hettinger wrote:
> The answer is a qualified Yes. While the core generator (currently
Thanks! That is the answer I'm looking for.
And to Paul Rubin, it is a good point that Jython might not support it, but
at this point it doesn't interest me. The program is only for myself
anyway.
"Raymond Hettinger" <[EMAIL PROTECTED]> writes:
> >> Can I rely on the random.py module to produce the same series of
> >> numbers for future/past versions of Python, given the same seed?
>
> The answer is a qualified Yes. While the core generator (currently the
> Mersenne Twister algorithm) is s
>> Can I rely on the random.py module to produce the same series of
>> numbers for future/past versions of Python, given the same seed?
The answer is a qualified Yes. While the core generator (currently the
Mersenne Twister algorithm) is subject to change across versions,
whenever we've updated t
"Roose" <[EMAIL PROTECTED]> writes:
> Can I rely on the random.py module to produce the same series of numbers for
> future/past versions of Python, given the same seed? Can I rely on it
> across different architectures and operating systems?
>
> I looked at the docs and couldn't find this stat
19 matches
Mail list logo