Skip to content
This repository has been archived by the owner on Jan 31, 2025. It is now read-only.

duplicated random attachments #17

Open
William-Rohm opened this issue Aug 5, 2015 · 1 comment
Open

duplicated random attachments #17

William-Rohm opened this issue Aug 5, 2015 · 1 comment
Assignees

Comments

@William-Rohm
Copy link
Contributor

  1. Create a set of attachment files, say Att1.txt through Att5.txt
  2. Create a MailSend operation with a RandomAttachments value of 5
  3. Create a sequence that calls that op 10 times

All the sent messages will have the correct number (5) of attachments. However, some of the messages will have duplicated attachments, where a given attachment file is included more than once.

@v-am
Copy link
Contributor

v-am commented Aug 14, 2015

Random attachments are selected by picking a "random" number from the specified range (in this case [0 - 4]). With a small range it's very likely the same number will be selected more than once.

If it's important for all attachments to be unique, better alternative might be an explicit set of attachments in the operation.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants