how to define an array

gorgeous yayuan geng gusunny1 at gmail.com
Mon Nov 4 03:23:08 UTC 2013


Dear,

you should defiine the array one by one like this, a(1)=2  a(2)=3
and you can random the array use the arrayrandomize method. then you can
get a random number use random method ,then
randomizearray a
t=random(1,ubound(a))
a(t) is what you want.
Hope this help.


2013/11/4 sihua xu <xusihua80 at gmail.com>

> Dear all
>     I am having problems with the definition of the array and assign the
> value in the e-prime, for example, I want to define two arrays. the first
> one  including 36 units and values and the second one including 12 units
> and values.  we should  get one value randomly from each array, and then
> stop the program by comparing the size of them.
> my main question is how to define the array including 36 or 12 units, how
> to get the value from the array randomly and compare them?
> the two arrays as follows:
> a[36]
> ={2,3,4,5,6,7,8,9,10,11,12,4,5,6,7,8,9,10,5,6,7,8,9,5,6,7,8,9,6,7,8,4,5,6,7,8}
> b[12] = {12,7,8,2,6,3,9,10,4,5,11,9,10,11,12}
>
> I would be grateful if anybody could help me with that
> thanks
>
>
>
>
> Sihua Xu
>
> PhD
> Department of psychology
> Sun Yat-Sen University
> Guangzhou, 510275
> P. R. China
>
> --
> You received this message because you are subscribed to the Google Groups
> "E-Prime" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to e-prime+unsubscribe at googlegroups.com.
> To post to this group, send email to e-prime at googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/e-prime/CAPEBGuZ1_p6CvL43-B6720CnppEsVi0P2j4Gn5W5AXNN9kjKow%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com.
To post to this group, send email to e-prime at googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/CAJO0WNZ4bd_ntp1%3D21JPwpTmdhJfDMfT5SzHEAZwBUOZFt%2BEmQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.linguistlist.org/pipermail/eprime/attachments/20131104/2daf525f/attachment.htm>


More information about the Eprime mailing list