function p = eml_is_rand_extrinsic
%MATLAB Code Generation Private Function

%   Copyright 2010-2014 The MathWorks, Inc.
%#codegen

p = coder.const(strcmp(coder.target,'mex') && ...
    eml_option('MXArrayCodeGen')) && ...
    ~coder.internal.isInParallelRegion();
