| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → SimEvents |
| Contents | Index |
| Learn more about SimEvents |
se_randomizeseeds(obj)
se_randomizeseeds(obj,'Mode','All')
se_randomizeseeds(obj,'Mode','Identical',)
se_randomizeseeds(obj,'Mode','SpecifySeeds',sv)
se_randomizeseeds(...,'GlobalSeed',seed)
se_randomizeseeds(...,'Verbose',verbosity)
se_randomizeseeds(obj) or se_randomizeseeds(obj,'Mode','All') assigns the seeds of all SimEvents blocks that use random number generators within blocks indicated by obj, making sure that the seeds are unique. The input obj is a system name, subsystem path name, block path name, or cell array of such names. If obj represents a system or subsystem, the function assigns seeds in subsystems of obj at any depth.
se_randomizeseeds(obj,'Mode','Identical',) changes only those seeds in the system or subsystem obj that appear multiple times in obj.
se_randomizeseeds(obj,'Mode','SpecifySeeds',sv) changes only those seeds whose current value appears in the vector sv.
se_randomizeseeds(...,'GlobalSeed',seed) specifies a global seed that the function uses to generate seed values in a repeatable way. seed is a nonnegative integer. When you use this syntax, it is repeatable for a given seed value, assuming the underlying systems or blocks specified in obj do not change. To ensure repeatability, this syntax does not guarantee uniqueness of generated seed values.
se_randomizeseeds(...,'Verbose',verbosity), if verbosity is 'on', explicitly reports the status of each seed change.
![]() | se_getseeds | se_setseeds | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |