core: add some inlining hints to methods/fns in rand.