augmentShuffle function exported ✓ 100.0%

Last updated: 2026-02-24T21:07:57.579Z

Metrics

LOC: 8 Complexity: 2 Params: 1 Coverage: 100.0% (5/5 lines, 1912x executed)

Signature

augmentShuffle(signals: string): : string

Summary

Simple augmentation: shuffle word order in a signal string

Source Code

export function augmentShuffle(signals: string): string {
  const words = signals.split(/\s+/);
  for (let i = words.length - 1; i > 0; i--) {
    const j = Math.floor(Math.random() * (i + 1));
    [words[i], words[j]] = [words[j], words[i]];
  }
  return words.join(" ");
}

No outgoing dependencies.

Impact (Incoming)

graph LR augmentShuffle["augmentShuffle"] buildKeywordsFromDictionary["buildKeywordsFromDictionary"] buildKeywordsFromDictionary -->|uses| augmentShuffle style augmentShuffle fill:#dbeafe,stroke:#2563eb,stroke-width:2px click augmentShuffle "e927efe70011297a.html" click buildKeywordsFromDictionary "dfb7d9bfef2aba38.html"
SourceType
buildKeywordsFromDictionary uses