se_getseeds

Seed values of random number generators in blocks

Syntax

seedstruct = se_getseeds(sysid)

Description

seedstruct = se_getseeds(sysid) returns the names and seed values of all SimEvents® blocks that you previously configured to use random number generators. sysid indicates the scope of the search by specifying a system name, subsystem path name, or block path name.

Input Arguments

sysid

String that indicates the scope of the search by specifying a system name, subsystem path name, or block path name.

Output Arguments

seedstruct

Structure with these fields:

  • system — Value of the sysid input to se_getseeds

  • seeds — Structure array, of which each element has these fields:

    • block — Path name of a block that uses a random number generator, relative to system

    • value — Numeric seed value of the block

More About

Was this topic helpful?