Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #41470

Problem this random seed()

Newsgroups comp.lang.python
Date 2013-03-18 18:57 -0700
Message-ID <c447cffe-964f-4f8e-9931-0c3b5ff9bf6d@googlegroups.com> (permalink)
Subject Problem this random seed()
From NZach <nickzacharatos@gmail.com>

Show all headers | View raw


Hello everyone,

i am using the MMK.py example from a SimPy tutorial, which can be found here: http://heather.cs.ucdavis.edu/~matloff/156/PLN/DESimIntro.pdf

I have made very little changes to the code and i have upload it here:
http://codeviewer.org/view/code:30d3

The problem is that i am executing  the main() function in lines 83 and 90, but 
i do not receive the  same result, although the random seed is used in the G 
class.

Any idea please, how can i solve it ?


Thanks,

Nicholas.

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Problem this random seed() NZach <nickzacharatos@gmail.com> - 2013-03-18 18:57 -0700
  Re: Problem this random seed() eli m <techgeek201@gmail.com> - 2013-03-18 19:36 -0700
  Re: Problem this random seed() alex23 <wuwei23@gmail.com> - 2013-03-18 19:51 -0700
    Re: Problem this random seed() NZach <nickzacharatos@gmail.com> - 2013-03-19 03:52 -0700
  Re: Problem this random seed() NZach <nickzacharatos@gmail.com> - 2013-03-19 03:54 -0700
    Re: Problem this random seed() Sven <svenito@gmail.com> - 2013-03-19 11:59 +0000
      Re: Problem this random seed() NZach <nickzacharatos@gmail.com> - 2013-03-19 05:27 -0700
      Re: Problem this random seed() NZach <nickzacharatos@gmail.com> - 2013-03-19 05:27 -0700
      Re: Problem this random seed() NZach <nickzacharatos@gmail.com> - 2013-03-19 06:50 -0700
        Re: Problem this random seed() Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-03-19 14:18 +0000
        Re: Problem this random seed() Sven <svenito@gmail.com> - 2013-03-19 14:19 +0000
          Re: Problem this random seed() NZach <nickzacharatos@gmail.com> - 2013-03-19 07:44 -0700
            Re: Problem this random seed() Sven <svenito@gmail.com> - 2013-03-19 15:05 +0000
            Re: Problem this random seed() Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-03-19 15:09 +0000
              Re: Problem this random seed() Sven <svenito@gmail.com> - 2013-03-19 15:19 +0000
          Re: Problem this random seed() NZach <nickzacharatos@gmail.com> - 2013-03-19 07:44 -0700
      Re: Problem this random seed() NZach <nickzacharatos@gmail.com> - 2013-03-19 06:50 -0700
  Re: Problem this random seed() NZach <nickzacharatos@gmail.com> - 2013-03-19 07:18 -0700
  Re: Problem this random seed() NZach <nickzacharatos@gmail.com> - 2013-03-19 08:23 -0700
    Re: Problem this random seed() NZach <nickzacharatos@gmail.com> - 2013-03-19 08:26 -0700

csiph-web