<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:14px">Hello everyone </span><div style="font-family:arial,sans-serif;font-size:14px"><br></div><div style="font-family:arial,sans-serif;font-size:14px"> I know how to define the array with the help of David and sally, and I get the value randomly according to way that they told me, but actually, I found the program do not get the value of the array randomly and i do not know the reason.</div>
<div style="font-family:arial,sans-serif;font-size:14px">I want to achieve the purpose of the following</div><div style="font-family:arial,sans-serif;font-size:14px"> to get one value from each array and decide to end or continue the program by comparing the size of the value from the two arrays. the script example just as follows</div>
<div style="font-family:arial,sans-serif;font-size:14px">dim a(1 to 4) as integer</div><div style="font-family:arial,sans-serif;font-size:14px">dim b (1 to 3) as integer</div><div style="font-family:arial,sans-serif;font-size:14px">
dim c as integer</div><div style="font-family:arial,sans-serif;font-size:14px">dim d as integer</div><div style="font-family:arial,sans-serif;font-size:14px">dim randompik as integer</div><div style="font-family:arial,sans-serif;font-size:14px">
a(1) = 6</div><div style="font-family:arial,sans-serif;font-size:14px">a(2) = 3</div><div style="font-family:arial,sans-serif;font-size:14px">a(3) = 7</div><div style="font-family:arial,sans-serif;font-size:14px">a(4) = 2</div>
<div style="font-family:arial,sans-serif;font-size:14px">b(1) = 2</div><div style="font-family:arial,sans-serif;font-size:14px">b(2)= 6</div><div style="font-family:arial,sans-serif;font-size:14px">b(3) = 4</div><div style="font-family:arial,sans-serif;font-size:14px">
c = random(a(1), a(4))</div><div style="font-family:arial,sans-serif;font-size:14px">d = random(b(1), b(3))</div><div style="font-family:arial,sans-serif;font-size:14px">if c>d then </div><div style="font-family:arial,sans-serif;font-size:14px">
randompik = 1</div><div style="font-family:arial,sans-serif;font-size:14px">else randompik =2</div><div style="font-family:arial,sans-serif;font-size:14px">end if</div><div style="font-family:arial,sans-serif;font-size:14px">
<br></div><div style="font-family:arial,sans-serif;font-size:14px"><div style="margin:0px;padding:0px;border:0px;vertical-align:baseline;font-family:Arial,Helvetica,sans-serif;font-size:13px">I would be grateful if anybody could help me to find the reason why it can not achieve my purpose and modify that</div>
<div style="margin:0px;padding:0px;border:0px;vertical-align:baseline;font-family:Arial,Helvetica,sans-serif;font-size:13px"><br></div><div style="margin:0px;padding:0px;border:0px;vertical-align:baseline;font-family:Arial,Helvetica,sans-serif;font-size:13px">
<br></div></div><div><div>Sihua Xu<br><br></div></div>
</div>
<p></p>
-- <br />
You received this message because you are subscribed to the Google Groups "E-Prime" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe@googlegroups.com.<br />
To post to this group, send email to e-prime@googlegroups.com.<br />
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/e-prime/CAPEBGuZKEQU9_P_o67iyLcPMhvy%2BYiMOQYVExDW27EXVKh2aGQ%40mail.gmail.com">https://groups.google.com/d/msgid/e-prime/CAPEBGuZKEQU9_P_o67iyLcPMhvy%2BYiMOQYVExDW27EXVKh2aGQ%40mail.gmail.com</a>.<br />
For more options, visit <a href="https://groups.google.com/groups/opt_out">https://groups.google.com/groups/opt_out</a>.<br />