How can I use _RANDOM_SEED in colab?

Viewed 536

I was trying to use _RANDOM_SEED from python_utils module but I had this error

AttributeError: module 'python_utils' has no attribute '_RANDOM_SEED

1 Answers

I think you don't import random.

you can use random

import random
random.seed(365)

You can use numpy.

import numpy as np; 
np.random.seed(365)
Related