MATLAB: How to know seed directly

MATLABrandom number generator

Hi,
I use "rng" to know which seed was selected after doing "rng shuffle."
How can I only know the seed directly? I don't need to know "type" and "state."
Thanks!

Best Answer

Hsinho, you may be asking for this:
>> rng shuffle
>> s = rng
s =
Type: 'twister'
Seed: 1066045100
State: [625x1 uint32]
>> s.Seed
ans =
1066045100