MCPcopy Create free account
hub / github.com/AMReX-Codes/amrex / amrex_random_int

Function amrex_random_int

Src/Base/AMReX_Random.cpp:363–366  ·  view source on GitHub ↗

This is for Fortran, which doesn't have unsigned long.

Source from the content-addressed store, hash-verified

361
362 // This is for Fortran, which doesn't have unsigned long.
363 amrex::Long amrex_random_int (amrex::Long n)
364 {
365 return static_cast<amrex::Long>(amrex::Random_int(static_cast<amrex::ULong>(n)));
366 }
367}

Callers

nothing calls this directly

Calls 1

Random_intFunction · 0.85

Tested by

no test coverage detected