Deterministic and stochastic shocks in simultaneous

Hello,
I'm working on a RBC model with a technological, a financial and a preference shock (all stochastic), but I would like to know if it is possible to generate a preference shock that for a certain time of the sample exhibits a stochastic behavior, and for remaining periods, behaves like a deterministic shock. Is it possible to begin with with the deterministic behavior by feeding specific initial values using histval? Thanks in advance for your attention, and I am able to provide more information about my model if you think it is pertinent.
I'm working on a RBC model with a technological, a financial and a preference shock (all stochastic), but I would like to know if it is possible to generate a preference shock that for a certain time of the sample exhibits a stochastic behavior, and for remaining periods, behaves like a deterministic shock. Is it possible to begin with with the deterministic behavior by feeding specific initial values using histval? Thanks in advance for your attention, and I am able to provide more information about my model if you think it is pertinent.