<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Snipplr</title>
    <description>Recent snippets posted on Snipplr.com</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Sat, 13 Jun 2026 16:15:51 +0000</lastBuildDate>
    <item>
      <title>(C++) Random number within a range - dblandin</title>
      <link>https://snipplr.com/view/42253/random-number-within-a-range</link>
      <description>&lt;p&gt;&lt;p&gt;This function returns a random number within a range.&lt;/p&gt;&lt;p&gt;For example:&lt;/p&gt;&lt;p&gt;// assigns low and high values for range&lt;/p&gt;&lt;p&gt;&lt;code&gt;int rangeLow = 34, rangeHigh = 78;&lt;/code&gt;&lt;/p&gt;&lt;p&gt;// computes a random number between 34 and 78&lt;/p&gt;&lt;p&gt;&lt;code&gt;myRandomNumber = computeRandomNumber(rangeLow, rangeHigh);&lt;/code&gt;&lt;/p&gt;&lt;/p&gt;</description>
      <pubDate>Thu, 14 Oct 2010 16:15:12 UTC</pubDate>
      <guid>https://snipplr.com/view/42253/random-number-within-a-range</guid>
    </item>
  </channel>
</rss>
