From 11:00 PM CST Friday, Apr 11th - 1:30 PM CST Saturday, Apr 12th, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabWindows/CVI

Content Type
Programming Language
Current manual
Table of Contents

SetRandomSeed

SetRandomSeed

void SetRandomSeed (unsigned long seedValue);

Purpose

Sets the seed value used by the Random function.

Setting the seed value causes the Random function to begin a new sequence of random numbers.

If you set the seed to a previously set value, Random will generate the same sequence of random numbers that it did when the seed was first set to that value.

Pass 0 to set the seed value using the current time.

Parameters

Input
Name Type Description
seedValue unsigned long Pass the seed value that the Random function should use to generate random numbers.

Return Value

None.

Additional Information

Library: Programmer's Toolbox

Include file: toolbox\toolbox.h

LabWindows/CVI compatibility: LabWindows/CVI 4.0 and later

Was this information helpful?

Previous

Random

Previous

Random

Help us improve your future ni.com experience.

Did you find the documentation you were looking for?

Submit