1 ! Copyright (C) 2013 John Benediktsson
2 ! See https://factorcode.org/license.txt for BSD license
4 USING: alien.c-types alien.syntax kernel random ;
10 FUNCTION: int rand ( )
14 M: c-random random-32* drop rand ;
16 : with-c-random ( quot -- )
17 [ c-random ] dip with-random ; inline