Skip to content

Commit

Permalink
Converted usage of whrandom to random.
Browse files Browse the repository at this point in the history
  • Loading branch information
teoliphant committed Oct 6, 2004
1 parent 733d4d0 commit 0642f51
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Lib/ga/ga_util.py
Expand Up @@ -7,7 +7,7 @@
def nop(x): return x
def flip_coin(p): return (rv.random() < p)

import whrandom
import random as whrandom

def flip_coin2(p): return (whrandom.random() < p)
class empty_class: pass
Expand Down
2 changes: 1 addition & 1 deletion Lib/ga/gene.py
Expand Up @@ -14,7 +14,7 @@

from ga_util import *
import scipy.stats as rv
from whrandom import random
from random import random
import copy

class gene:
Expand Down
2 changes: 1 addition & 1 deletion Lib/ga/language.py
@@ -1,6 +1,6 @@
import types
import time
from whrandom import *
from random import *
SymbolError = 'Symbol Error'
DepthError = 'Depth Error'

Expand Down
2 changes: 1 addition & 1 deletion Lib/optimize/tests/test_zeros.py
Expand Up @@ -7,7 +7,7 @@
del sys.path[0]

from math import sin,sqrt,log
from whrandom import random
from random import random

def f1(x) :
return x*(x-1.)
Expand Down

0 comments on commit 0642f51

Please sign in to comment.