Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string getQuote(){
- //Load collection of lines
- ArrayList quotes = getQuotesData();
- int quoteCount = quotes.Count;
- // Set session or application variable to some number
- int counter;
- if( !Integer.parse( Session("counter"), counter ) ) { counter = 0; }
- if( counter > quoteCount ) { counter = 0; }
- return quotes[counter];
- }
Add Comment
Please, Sign In to add comment