weighted-random-item-sampler
A weighted random item sampler (selector), where the probability of selecting an item is proportional to its weight, with replacement allowed between samples. In other words, an item can be sampled more than once. The sampling method utilizes a binary sea
non-replacement-weighted-random-item-sampler
A weighted random item sampler (selector), where the probability of selecting an item is proportional to its weight, and every item is sampled exactly once (without repetition or replacement). The sampling method utilizes a binary-search optimization, mak
multiobjectaldanimation
This project demonstrates a simple multi-object animation using JavaScript and CSS. It features three red square objects moving horizontally within the browser window. When any object reaches the window's edge, it changes direction, creating a continuous
aku3dcuberotationanimation
This project demonstrates a simple 3D cube rotation animation using JavaScript and the Three.js library. The animation is achieved by rotating a cube object along its X and Y axes.