Race Swap Toys - Appearance Formula?

It is clear that using race-swap toys (like Orb of Sin’dorei or Atomic Recalibrator) choose a deterministic appearance in the new, temporary race based on your current appearance. Has anyone figured out exactly what this formula is?

It is pretty clear my actual appearance’s skin tone, hairstyle, and hair color play a pretty big role in the temp appearance, but is it a modulus on these values? I’d love to find/make a WeakAura that helps people craft an alternate-reality appearance for when they use these types of things.