Recently I've been playing with the random function for both javascript and vb.net... (Just a simple die roller: fields for number of dice and number of sides)

Ok so if I make it so it rolls 100 times or something to that affect the average roll is ALWAYS the same... That really makes me wonder how random these randomly generated numbers are... I eventually decided to just multiply by date.now.seconds and then do a mod operation which made the average different... But what the heck. What is in the random class (.net) and math.random function (javascript) that is making it average out to the same number everytime.