Skip to content

Commit

Permalink
fix \pgfmathrand range
Browse files Browse the repository at this point in the history
  • Loading branch information
xworld21 authored and dginev committed Jan 8, 2025
1 parent f82b733 commit 7857e6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/LaTeXML/Package/pgfmath.code.tex.ltxml
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ DefMacro('\pgfmathsqrt@ pgfNumber', sub {
DefMacro('\pgfmathrnd@', sub {
return pgfmathresult(rand()); });
DefMacro('\pgfmathrand@', sub {
return pgfmathresult(1 + rand(2)); });
return pgfmathresult(-1 + rand(2)); });
DefMacro('\pgfmathfactorial@', sub {
return pgfmathresult(pgfmathfactorial($_[1])); });
DefMacro('\pgfmathreciprocal@ pgfNumber', sub {
Expand Down

0 comments on commit 7857e6b

Please sign in to comment.