AdobeDocs / AdobeDocs/contributor.en

Suggest JS code incorrect

Open
#37 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.