samila
samila copied to clipboard
Seed for random functions
Description
Normally, when you wanted to use the random generative mode, you would need to set a random seed out of the object initialization:
>>> from samila import GenerativeImage
>>> import random
>>> random.seed(0)
>>> g = GenerativeImage()
Instead of this, we can have a parameter that controls the random function generation.
Steps/Code to Reproduce
>>> from samila import GenerativeImage
>>> g = GenerativeImage(func_seed=0)
Operating System
Ubuntu 22.04
Python Version
3.10.6
Samila Version (Use : samila.__version__
)
1.1