diff options
Diffstat (limited to 'metapost')
-rw-r--r-- | metapost/context/base/mpxl/mp-mlib.mpxl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/metapost/context/base/mpxl/mp-mlib.mpxl b/metapost/context/base/mpxl/mp-mlib.mpxl index 65146081e..f29ba9c44 100644 --- a/metapost/context/base/mpxl/mp-mlib.mpxl +++ b/metapost/context/base/mpxl/mp-mlib.mpxl @@ -1850,3 +1850,10 @@ permanent uniquelist ; def withtolerance expr n = withprescript ("tolerance=" & decimal n) enddef ; + +% fun stuff: randomseed := repeatablerandom("default") ; + +newscriptindex mfid_repeatablerandom ; mfid_repeatablerandom := scriptindex("repeatablerandom") ; + +def repeatablerandom = runscript mfid_repeatablerandom enddef ; + |