threejs-worldgen
    Preparing search index...

    Function pickSource

    • The source a uniform random u in [0, 1) picks: the first whose prefix sum exceeds u × total (what the GPU does).

      Parameters

      Returns number