Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
/**
* choose.scad
*
* @copyright Justin Lin, 2021
* @license https://opensource.org/licenses/lgpl-3.0.html
*
* @see https://openhome.cc/eGossip/OpenSCAD/lib3x-choose.html
*
**/
function choose(choices, seed) =
let(c = is_undef(seed) ? rands(0, len(choices) - 1, 1) : rands(0, len(choices) - 1, 1, seed))
choices[round(c[0])];bb33edfd7This file is pinned to the selected release. Download the original to open it in your design tool.