← Back to list

random-selection
by ljchg12-hue
Claude Code CLI configuration with multi-AI orchestration and ABSOLUTE RULES enforcement
⭐ 0🍴 0📅 Jan 16, 2026
SKILL.md
name: random-selection description: Randomly select items from lists using various algorithms for fair and unbiased selection
Random Selection Skill
Perform random selection with various algorithms for fair, unbiased outcomes.
When to Use
- Prize drawings
- Random sampling
- A/B test group assignment
- Survey participant selection
Core Capabilities
- Simple random selection
- Weighted random selection
- Stratified sampling
- Shuffle/randomize lists
- Unique selection (no duplicates)
- Reproducible randomness (seeded)
Examples
# Bash: Random line from file
shuf -n 1 items.txt
# Python: Simple random
import random
items = ['A', 'B', 'C', 'D']
selected = random.choice(items)
# Python: Multiple unique items
selected = random.sample(items, 2)
# Python: Weighted selection
weights = [10, 5, 3, 1]
selected = random.choices(items, weights=weights, k=1)
# Python: Seeded (reproducible)
random.seed(42)
selected = random.choice(items)
Algorithms
- Uniform: Equal probability
- Weighted: Based on weights
- Reservoir sampling: For streams
- Fisher-Yates shuffle: Unbiased shuffling
Best Practices
- Use cryptographically secure random for security
- Document seed for reproducibility
- Verify distribution for large samples
- Handle edge cases (empty list, single item)
Resources
- Python random: https://docs.python.org/3/library/random.html
- secrets (secure): https://docs.python.org/3/library/secrets.html
Score
Total Score
50/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon