I'm just starting out on one of my first programming projects in visual studio 2010.
I have an XML file that I have added into the program as an item. It has the following structure:
<lexeme><grapheme>Aalesund</grapheme> <phoneme>'A:lI2s,Vnd</phoneme></lexeme>
There are 400,000 entries like that and what I would like to do is on a button press have a random lexeme selected from the xml file and then two labels populated with the corresponding grapheme and phoneme.
Could anyone point me in the right direction to begin with please? The tutorials I have found are for loading specific amounts of data, not just one random line and reference an external xml file location, not one that is internal to the project.
Thanks in advance.
Edit: I should say that I mean pseudo-random number. I was hoping to find a rand() function, but can't seem to?