EasyUse/Seedgenerated

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

seed
total
min_num
INT
max_num
INT
method
random
total
1
seed
INT
Easy Use

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_nummax_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 — generates total pseudo-random integer seeds between min_num and max_num, using seed as the random seed.
    • increment — generates an increasing sequence of seeds starting from seed, bounded by the min_num/max_num range.
    • decrement — generates a decreasing sequence of seeds starting from seed, bounded by the min_num/max_num range.

    Default: random.

  • total (required, INT): The number of seeds to generate. Accepts values from 1 to 100000. 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. For increment/decrement, this is the first value in the sequence.

Outputs

  • Seed list (INT): The generated collection of total integer seeds. Although the node reports this output as INT, it is meant to be treated as a list/sequence of integers when wired into easy indexAny or 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 index input of an easy indexAny node, 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 seed fixed for reproducible results. Changing min_num, max_num, method, total, or seed will regenerate the list.
  • random mode is useful for varied, deterministic randomness across iterations. increment and decrement modes are useful when seeds should progress predictably in a sequence.

Comments

Sign in with GitHub to join the discussion.

Loading comments…