WC2 Function

Returns a random number with a worst case distribution. This function is intended to be used for SIMPLIS Monte Carlo analyses and would typically be used in device value expressions.

This function is only available in the Simulator process and cannot be called from scripts running in the context of the front end. The function is only active when used by the netlist pre-processor with Monte Carlo analysis enabled. When used in other contexts, the function returns 1.0.

Arguments

Number Type Compulsory Default Description
1 real Yes Lower tolerance
2 real Yes Upper tolerance

Returns

Return type: real

Random number which is either 1.0+upper-tolerance or 1.0+lower-tolerance

See Also

Example

1k*WC2(-0.05, 0.1) will return 900 or 1050 chosen at random. Returns 1000 in a non Monte Carlo run.