#include &lt;iostream&gt;    #include &lt;ctime&gt;    #include &lt;cstdlib&gt;    using namespace std;    int main&#40;&#41;    &#123;        srand&#40;&#40;unsigned&#41;time&#40;0&#41;&#41;;        int ran;        int low = 1, high = 10;        int range = &#40;high - low&#41; + 1;        for&#40;int index = 0; index &lt; 1; index++&#41;        &#123;            ran = low + int&#40;range * rand&#40;&#41; / &#40;RAND_MAX + 1.0&#41;&#41;;            cout &lt;&lt; ran &lt;&lt; endl;        &#125;    &#125;
A. 1
B. 2
C. 3
D. 4
Answer:A
#include &lt;iostream&gt;    #include &lt;ctime&gt;    #include &lt;cstdlib&gt;    using namespace std;    int main&#40;&#41;    &#123;        srand&#40;&#40;unsigned&#41;time&#40;0&#41;&#41;;        int ran;        int low = 1, high = 10;        int range = &#40;high - low&#41; + 1;        for&#40;int index = 0; index &lt; 1; index++&#41;        &#123;            ran = low + int&#40;range * rand&#40;&#41; / &#40;RAND_MAX + 1.0&#41;&#41;;            cout &lt;&lt; ran &lt;&lt; endl;        &#125;    &#125;
A. 1 B. 2 C. 3 D. 4