sepandhaghighi / samila

Generative Art Generator

Home Page:https://www.samila.site

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Seed for random functions

sadrasabouri opened this issue · comments

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