Create random array sequence based on group weight. Implementation is based on fair die algorithm http://www.keithschwarz.com/darts-dice-coins/
A fast implementation of a fisher-yates shuffle that does not mutate the source array.
A randomizer library for producing mock data
Merge CSS rules with PostCSS.
Minify font declarations with PostCSS
Calculate the influence or weight of points over an area based on their distances.
Types for the TypeScript-ESTree AST spec
Traditional Chinese (Big5) fallback fonts for EmbedPDF - Noto Sans Hant (7 weights)
Japanese (Shift-JIS) fallback fonts for EmbedPDF - Noto Sans JP (7 weights)
Korean (Hangeul) fallback fonts for EmbedPDF - Noto Sans KR (7 weights)
Simplified Chinese (GB2312) fallback fonts for EmbedPDF - Noto Sans Hans (5 weights)
List of CSS font weight keywords.
Latin/European fallback fonts for EmbedPDF - Noto Sans (9 weights × 2 styles)
Hebrew fallback fonts for EmbedPDF - Noto Sans Hebrew (Regular and Bold)
Arabic fallback fonts for EmbedPDF - Noto Naskh Arabic (Regular and Bold)
Self-host the Inter font in a neatly bundled NPM package.
Self-host the Roboto font in a neatly bundled NPM package.
The motiviation of this repo is that when ReScript users want to share their library with JS users, the JS users don't need have ReScript toolchain installed, this makes sharing code with JS users easier (more details on that topic can be found in our [Ex
Extract useful information from font files
Self-host the Open Sans font in a neatly bundled NPM package.
WebGL Library
Icon catalog and assets for Phosphor
Self-host the JetBrains Mono font in a neatly bundled NPM package.
Self-host the Poppins font in a neatly bundled NPM package.
Provides a common utility for weighted randomization
Returns a random integer from 1 to infinity. Half the time it returns 1. Each succesive integer is half the probability of the previous.
This hashing mechanism allows you to consistently hash to a specific node without needing to do bucketing first a'la Consistent Hashing. It also guarantees as little key redistribution as possible.
ActiveRecord extension for weighted randomization which supplies loading records with weight for randomize into database and weighted randomization of them
monkey patching Array class. (weighted shuffle, weighted sample)
A simple library for obtaining weighted randomized selections
Weighted randomization library for Ruby
Weighted Sampler helps you to pick a random samples from a collection with defined probabilities or weights. You can pass an Array or a Hash with desired probabilities and use Module or Class API to pick samples. Please, see documentation in the repo https://gitlab.com/oleksiy/weighted_sampler
Produce a weighted random sampling based on the weights calculated from a given block.
Provides a method to select a element by weighted randomization from a hash with weights.
Provides weighted randomization lottery by given ratios.
In Random Price Distribution, participants may have a higher chance of getting the most expensive gifts, which can reduce interest for other participants. This method uses weights to distribute the numbers more evenly.