Fixed indexing of rand_int()

This commit is contained in:
Revar Desmera 2019-07-18 21:58:41 -07:00
parent 2427e09dee
commit e8300c5bb6
2 changed files with 3 additions and 3 deletions

View file

@ -137,7 +137,7 @@ function modrange(x, y, m, step=1) =
function sqr(x) = x*x;
// Function: rand_int(min,max,N,seed)
// Function: rand_int()
// Usage:
// rand_int(min,max,N,[seed]);
// Description:

View file

@ -14,7 +14,7 @@ function lcase
function mkindex
{
TMPFILE=$(mktemp -t $(basename $0)) || exit 1
sed 's/[^a-zA-Z0-9_.:$]//g' | awk -F ':' '{printf "- [%s](%s#%s)\n", $3, $1, $3}' | sort -d -f -u >> $TMPFILE
sed 's/([^)]*)//g' | sed 's/[^a-zA-Z0-9_.:$]//g' | awk -F ':' '{printf "- [%s](%s#%s)\n", $3, $1, $3}' | sort -d -f -u >> $TMPFILE
alpha="A B C D E F G H I J K L M N O P Q R S T U V W X Y Z"
for a in $alpha; do
echo -n "[$a](#$(lcase "$a")) "
@ -34,7 +34,7 @@ function mkindex
(
echo "# Belfry OpenScad Library Index"
echo "## Belfry OpenScad Library Index"
(
grep 'Constant: ' *.scad
grep 'Function: ' *.scad