A86: Creating distinct random-integer lists using ASM or BASIC


[Prev][Next][Index][Thread]

A86: Creating distinct random-integer lists using ASM or BASIC




I'll try to be as clear as possible on this.

Is there anyway somebody can create a list of random integers with an inputted
range?....sort of like putting the integers within the range in random order.

For example, if you input 1 and 10.  It should generate a 10 item list of
numbers from 1 to 10 that are randomly placed something like:  {5, 3, 8, 9, 2,
1, 7, 6, 4, 10}.

If someone knows of any optimal way of programming this either in basic or
asm, preferably in asm then I'd greatly appreciate it.  this will come in use
when taking statistics courses since sometimes you have the assign the
experimental units random numbers in order to invalidate the lurking variable
of nonrandom assigning.

Reply to this list.


Thanks,

Mohsan H.