EasySeedList(seedList)
Random number seed that can be used in a for loop, by connecting index and easy indexAny node to realize different seed values in the loop.
seed List
Description
EasySeedList generates a reusable list of integer seed values for workflows that need different seeds for each iteration of a loop. It builds a list of total seeds within the given min_num–max_num range, using a progression method and a single base seed for reproducibility.
The intended usage is to feed the generated seed list into an easy indexAny node, connect the loop's index output as the selection index, and use the selected integer wherever a seed is required. This makes it possible to realize different seed values inside a for-loop without manually managing each seed.
Inputs
-
min_num (required, INT): Lower bound for the generated seed values. No generated seed will be lower than this value.
-
max_num (required, INT): Upper bound for the generated seed values. No generated seed will be higher than this value.
-
method (required, COMBO):
random— generatestotalpseudo-random integer seeds betweenmin_numandmax_num, usingseedas the random seed.increment— generates an increasing sequence of seeds starting fromseed, bounded by themin_num/max_numrange.decrement— generates a decreasing sequence of seeds starting fromseed, bounded by themin_num/max_numrange.
Default:
random. -
total (required, INT): The number of seeds to generate. Accepts values from
1to100000. Default:1. -
seed (required, INT): The base seed used to initialize the generator. For
random, keeping the same inputs produces the same list every run. Forincrement/decrement, this is the first value in the sequence.
Outputs
- Seed list (INT): The generated collection of
totalinteger seeds. Although the node reports this output asINT, it is meant to be treated as a list/sequence of integers when wired intoeasy indexAnyor similar indexing nodes. - Total (INT): The number of seeds in the generated list; equals
total.
Usage Notes
- To use the seeds in a loop, connect the loop index to the
indexinput of aneasy indexAnynode, and connect this node's first output as its input. The selected seed then changes as the loop index changes. - The second output can be used as the loop count or as a helper for normalizing the index into the seed list.
- Keep
seedfixed for reproducible results. Changingmin_num,max_num,method,total, orseedwill regenerate the list. randommode is useful for varied, deterministic randomness across iterations.incrementanddecrementmodes are useful when seeds should progress predictably in a sequence.
Comments
Sign in with GitHub to join the discussion.