Imgflip Logo Icon

How to set the random seed in python

How to set the random seed in python | 42; NP.RANDOM.RANDINT(0,100); NP.RANDOM.RANDINT(
NP.RANDOM.RANDINT(0,100),
NP.RANDOM.RANDINT(100,200)
); DEF SUPER_RANDOM(RECURSION_DEPTH):
    IF RECURSION_DEPTH < 0:
        RETURN 
                NP.RANDOM.RANDINT(0,SYS.MAXSIZE)
    A = SUPER_RANDOM(RECURSION_DEPTH - 1)
    B = SUPER_RANDOM(RECURSION_DEPTH - 1)
    VRANDOM = NP.RANDOM.RANDINT(A, A+B)
    RETURN HASH(VRANDOM) | image tagged in memes,expanding brain | made w/ Imgflip meme maker
808 views 2 upvotes Made by AbhishekNarwekar 5 years ago in fun
Expanding Brain memeCaption this Meme
Expanding Brain memeCaption this Meme
Created with the Imgflip Meme Generator
IMAGE DESCRIPTION:
42; NP.RANDOM.RANDINT(0,100); NP.RANDOM.RANDINT( NP.RANDOM.RANDINT(0,100), NP.RANDOM.RANDINT(100,200) ); DEF SUPER_RANDOM(RECURSION_DEPTH): IF RECURSION_DEPTH < 0: RETURN NP.RANDOM.RANDINT(0,SYS.MAXSIZE) A = SUPER_RANDOM(RECURSION_DEPTH - 1) B = SUPER_RANDOM(RECURSION_DEPTH - 1) VRANDOM = NP.RANDOM.RANDINT(A, A+B) RETURN HASH(VRANDOM)