add compatibility for randexp (Julia PR #9144)