Randomizing without repeating the same word twice

148 views
Skip to first unread message

gilis

unread,
Oct 18, 2011, 7:37:04 AM10/18/11
to E-Prime
Hi there!

Sorry for bothering the groups so often, but I just tackled a road
stone in my programming. Words are selected from an attribute which
contain 10 words and lied in a block that is nested in the main list.
The words are selected randomly in the block but the list run the
block 20 times (at list so I weighted the block in the main list
though it doesn't seem to run it 20 times, which is another
problem...) so it happen that the same word repeat itself twice (e.g.,
food, apple, juice, fork, spoon, orange, sandwich, beach, ocean,
river, river: in this instance river appeared last in the first time
the block was run and first in the second so it actually repeated
itself) -how can I avoid that?

David McFarlane

unread,
Oct 18, 2011, 10:15:22 AM10/18/11
to e-p...@googlegroups.com
Gilis,

Stock reminder: 1) I do not work for PST. 2) PST's trained staff
takes any and all questions at
http://support.pstnet.com/e%2Dprime/support/login.asp , and they
strive to respond to all requests in 24-48 hours -- this is pretty
much their substitute for proper documentation, so make full use of
it. 3) If you do get an answer from PST Web Support, please extend
the courtesy of posting their reply back here for the sake of others.

That said, here is my take...

"Randomization with constraints" is very tricky in E-Prime, and has
been discussed extensively on the message boards. Try searching for
"random", "pseudorandom", or "constraint" both here at the Google
Group and at the PST Forum. Also see the "NoRepeat" examples
downloadable fron PST. And again, do not neglect PST Support, they
would love to hear from you.

-- David McFarlane, Professional Faultfinder
"For a successful technology, reality must take precedence over
public relations, for nature cannot be fooled." (Richard Feynman,
Nobel prize-winning physicist)

gilis

unread,
Oct 18, 2011, 1:18:39 PM10/18/11
to E-Prime
Thanks! the problem however is still not solved as the example of
noRepeat refer to randomizing nested lists while I'm interested in
randomizing words from the same list which repeat itself several
times.

On Oct 18, 4:15 pm, David McFarlane <mcfar...@msu.edu> wrote:
> Gilis,
>
> Stock reminder:  1) I do not work for PST.  2) PST's trained staff
> takes any and all questions athttp://support.pstnet.com/e%2Dprime/support/login.asp, and they
Reply all
Reply to author
Forward
0 new messages