Shuffle / Random nodes based on what formula or principle?

Hello, I am wondering the nodes - 1. List.Shuffle; 2. Math.Random. What kind of rule or formula they apply to generate random stuffs?

you can see the source for the random and math classes here:

this should all be using the .net random classes in most places so see MSDN:


Thank you so much.

I also want to know the difference between Shuffle and Random. Any idea? Thanks.