.. highlightlang:: us .. index:: srand .. _srand: srand ===== .. us.tag srand ENGLISH math-rand Changed5140 :ref:`srand` sets a start value for the random generator. .. function:: r = srand(sVal) .. us.return **Return Value** *r* is always 1. .. us.params **Parameters** .. uparam:: sVal *sVal* is a real, complex or string scalar. .. us.example **Example** :: * srand("Start"); .. us.history **History** .. list-table:: :header-rows: 1 * - Version - Description * - 5.14.0 - .. seealso:: :ref:`overview-mathematic`, :ref:`rand` :sub:`id-71642`