I have a function
def brent(n):
in a module prime. brent requires modules fractions, random
In my main module I do:
import prime # brent is found in here
import fractions # required for brent
import random # required for brent
When I call brent(n) it errors saying it can't find random. The fix is to place
import random
import fractions
INSIDE the original brent function.
Is this intended behaviour?