RandomBuffer helper.