Last active
August 29, 2015 14:04
-
-
Save jz5/b36343583ef89f4c90e3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Private Function GetMessage() As String | |
Dim items = New List(Of String) | |
Dim d = XDocument.Load("http://pronama.azurewebsites.net/feed/") | |
For Each i In d...<item> | |
Dim msg = String.Format("old post: {0} {1}", i.<title>.Value, i.<guid>.Value) | |
items.Add(msg) | |
Next | |
Dim r = New Random | |
Return items(r.Next(items.Count)) | |
End Function |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment