Hi guys. I have i noob question, but I'm really in trouble if I don't know the answer.
Im reading an XNA book (beginning XNA Game Programming - from Novice to Pro, by the way, is an excelent book) and the author is creating a "Asteroids" clone. The Player controls a ship and a rain of meteors fall over the screen, and you have to avoid then. My question is: for creating the speed and the position that the meteor appears on the window, he used a Radom function. When he went to instantiate the object, he used the following line: random = new Random (this.GetHashCode()); And I dont know what the GetHashCode function really does. That's why I'm asking here. I'm using this book on a final project in my college in Brazil, so the questions will rain from the teachers that will going to watch my lecture. Thanks all you guys =) PS: forgive my English, im not a native, but i'm trying to do my best... lol
