[#266] added a `random` function