mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-01-01 09:49:45 +00:00
Fixed indexing of rand_int()
This commit is contained in:
parent
2427e09dee
commit
e8300c5bb6
2 changed files with 3 additions and 3 deletions
|
@ -137,7 +137,7 @@ function modrange(x, y, m, step=1) =
|
||||||
function sqr(x) = x*x;
|
function sqr(x) = x*x;
|
||||||
|
|
||||||
|
|
||||||
// Function: rand_int(min,max,N,seed)
|
// Function: rand_int()
|
||||||
// Usage:
|
// Usage:
|
||||||
// rand_int(min,max,N,[seed]);
|
// rand_int(min,max,N,[seed]);
|
||||||
// Description:
|
// Description:
|
||||||
|
|
|
@ -14,7 +14,7 @@ function lcase
|
||||||
function mkindex
|
function mkindex
|
||||||
{
|
{
|
||||||
TMPFILE=$(mktemp -t $(basename $0)) || exit 1
|
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"
|
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
|
for a in $alpha; do
|
||||||
echo -n "[$a](#$(lcase "$a")) "
|
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 'Constant: ' *.scad
|
||||||
grep 'Function: ' *.scad
|
grep 'Function: ' *.scad
|
||||||
|
|
Loading…
Reference in a new issue