 
 GENERIC: random-float* ( tuple -- r )
  
-: random-float ( -- n ) random-generator get random-float* ;
+: random-float ( -- n ) random-generator get random-float* ; inline
 
 M:: lagged-fibonacci random-float* ( lagged-fibonacci -- x )
     lagged-fibonacci [ pt0>> ] [ u>> ] bi nth

SPECIALIZED-ARRAY: double
IN: random.lagged-fibonacci

TUPLE: lagged-fibonacci u pt0 pt1 ;

<PRIVATE


    lagged-fibonacci [ adjust-ptr ] change-pt0 drop
    lagged-fibonacci [ adjust-ptr ] change-pt1 drop
    uni ; inline

: default-lagged-fibonacci ( -- obj )
    [ random-32 ] with-system-random <lagged-fibonacci> ;
