yes, HSN is the order of the frequencies in the MA list.
HSN 1 will generate a different “random” ordering than HSN 2.
There is no point knowing the “random” formulas. You should jsut know that each HSN will generate an order totally different than the other HSN. Except HSN 0 which is “no order” (cyclic)