AdobeDocs / AdobeDocs/contributor.en
Suggest JS code incorrect
- Dominant language
- No language data
- Stars
- 1
- Forks
- 23
- PR merge metrics
- No merged PRs in 30d
Description
The sample [code snippet provided here](https://experienceleague.adobe.com/docs/target/using/audiences/visitor-profiles/use-profile-scripts-to-test-mutually-exclusive-activities.html?lang=en) is incorrect. It results in uneven distributions between groups.
Instead of using; "Math.floor(Math.random() * 99)", "Math.floor(Math.random() * 100)" should be used instead.
Contributor guide
Research direction
Open the linked Adobe Target page and locate the mutually exclusive activities code snippet; compare it with the correction described in the issue. Done means the published example reflects the requested change and no longer produces the stated uneven group distribution.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100