Adding @inline function random_math_viewed makes this path faster, for me.
@inline function random_math_viewed