منتقي عشوائي مرجح

مطور
إعلان · يزيل؟

إعدادات

إعلان · يزيل؟

مرشد

Weighted Random Picker

منتقي عشوائي مرجح

Randomly select items from a list with custom weights — give some items higher chances of being picked than others. Uses cryptographic randomness for fair, unbiased selections. Pick one or multiple items, with or without replacement, and track your pick history and statistics.

كيف تستعمل

Add items and assign weights to each — higher weights mean higher probability of being selected. The tool automatically calculates and displays each item’s probability percentage. Click Pick to randomly select an item. Choose how many items to pick at once, and toggle between with replacement (items can be picked again) and without replacement (each item picked only once per batch). Import items from CSV or paste a newline-separated list.

سمات

  • Custom Weights — Assign any numeric weight to each item. A weight of 10 makes an item twice as likely to be picked as one with weight 5. Probability percentages update automatically.
  • العشوائية التشفيرية — Uses crypto.getRandomValues() for truly fair, unbiased random selection. No pseudo-random shortcuts.
  • Pick Multiple Items — Select 1 or more items at once. Toggle between with replacement (items can repeat) and without replacement (each item selected at most once per batch).
  • Pick History — Full log of all picks in the current session with timestamps and pick numbers. Clear history when needed.
  • Probability Visualization — Pie/donut chart showing weight distribution. After multiple picks, compare actual distribution against expected probabilities.
  • CSV Import — Paste items as CSV (item,weight) or newline-separated text. Items without weights default to 1.
  • Dynamic Item Management — Add, remove, and reorder items freely. Start with preset empty rows and add more as needed.

How Weighted Selection Works

Weighted random selection uses a cumulative distribution function: all weights are summed, a random number is generated between 0 and the total weight, then the algorithm walks through cumulative weights to find which item the random number falls into. An item with weight 30 out of a total weight of 100 has exactly a 30% chance of being selected on each pick. This is the same algorithm used in lotteries, game loot tables, and scientific sampling.

إعلان · يزيل؟

What is weighted random selection?

Weighted random selection is a method of randomly choosing items where each item has a different probability of being selected. Unlike simple random picking (where every item has equal chance), weighted selection lets you assign importance or likelihood to each option. For example, in a raffle where someone buys 5 tickets and another buys 1 ticket, the first person should be 5 times more likely to win. Weighted random picking handles this mathematically — the item’s weight divided by total weight equals its exact probability.

What is the difference between with and without replacement?

With replacement means items can be picked more than once — after each pick, all items remain in the pool. This is like rolling dice: every roll is independent. Without replacement means once an item is picked, it’s removed from the pool for the remaining picks in that batch. This is like drawing cards: each draw changes the odds for the next. Use ‘with replacement’ when repetition is fine (random sampling), and ‘without replacement’ when you need unique selections (assigning tasks, tournament brackets).

Is the random selection truly fair?

Yes. This tool uses crypto.getRandomValues(), the same cryptographic random number generator used for security applications like encryption key generation. Unlike Math.random() which uses a pseudo-random algorithm, crypto.getRandomValues() draws from the operating system’s entropy pool, producing cryptographically secure random numbers. Combined with the cumulative distribution function algorithm, this ensures each item’s actual selection rate converges precisely to its assigned probability over many picks.

What are common uses for weighted random picking?

Weighted random selection is used in game development (loot drop tables, enemy spawning), marketing (promotional giveaways with tiered prizes), education (weighted quiz question selection), project management (prioritized task assignment), A/B testing (traffic distribution between variants), decision making (when options have different priorities), and scientific research (stratified sampling). Any scenario where you need randomness but not equal probability benefits from weighted selection.

هل تريد حذف الإعلانات؟ تخلص من الإعلانات اليوم

تثبيت ملحقاتنا

أضف أدوات IO إلى متصفحك المفضل للوصول الفوري والبحث بشكل أسرع

أضف لـ إضافة كروم أضف لـ امتداد الحافة أضف لـ إضافة فايرفوكس أضف لـ ملحق الأوبرا

وصلت لوحة النتائج!

لوحة النتائج هي طريقة ممتعة لتتبع ألعابك، يتم تخزين جميع البيانات في متصفحك. المزيد من الميزات قريبا!

إعلان · يزيل؟
إعلان · يزيل؟
إعلان · يزيل؟

ركن الأخبار مع أبرز التقنيات

شارك

ساعدنا على الاستمرار في تقديم أدوات مجانية قيمة

اشتري لي قهوة
إعلان · يزيل؟