private
getrandstate
— function
getrandstate(transform)
Generates random state for stochastic transformations.
Calling apply(tfm, item)
is equivalent to
apply(tfm, item; randstate = getrandstate(tfm))
. It
defaults to nothing
, so you it only needs to be implemented
for stochastic Transform
s.