easyRNG
1.2
BSD licensed random number generators for C and Fortran
|
Include the easyRNG headers in your code:
Assuming your program source file is called program.c
, compile it with:
The Fortran bindings' API is mostly identical to the C's. An important exception here is easy_ran_discrete_preproc(), which has one argument less than its C counterpart. Include the easyRNG module in your code:
Assuming your program source file is called program.f90
, compile it with:
Make sure to use the exact same Fortran compiler to compile your program as was used to compile easyRNG!