sepandhaghighi / samila

Generative Art Generator
https://www.samila.site
MIT License
1.08k stars 78 forks source link

Seed for random functions #192

Closed sadrasabouri closed 2 months ago

sadrasabouri commented 1 year ago

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