Admin Production ni-theme
Current Publication

SetRandomSeed

LabWindows/CVI

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