12.07.2015 Views

Intel® Fortran Libraries Reference

Intel® Fortran Libraries Reference

Intel® Fortran Libraries Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

2 Intel <strong>Fortran</strong> <strong>Libraries</strong> <strong>Reference</strong>Module: USE IFPORTSyntaxCALL SEED (iseed)iseed(Input) INTEGER(4). Starting point for RANDOM.SEED uses iseed to establish the starting point of the pseudorandom number generator. A givenseed always produces the same sequence of values from RANDOM.If SEED is not called before the first call to RANDOM, RANDOM always begins with a seedvalue of one. If a program must have a different pseudorandom sequence each time it runs, passthe constant RND$TIMESEED (defined in IFPORT.F90) to the SEED routine before the firstcall to RANDOM.This routine is not thread-safe.CompatibilityCONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS DLL LIBSee Also: “RANDOM”, the RANDOM_SEED and RANDOM_NUMBER intrinsic subroutinesin the Language <strong>Reference</strong>ExampleUSE IFPORTREAL myrandCALL SEED(7531)CALL RANDOM(myrand)SETACTIVEQQQuickWin Function: Makes a child window active, but does not give it focus. This function isonly available on Windows* systems.Module: USE IFQWINSyntaxresult = SETACTIVEQQ (unit)unit(Input) INTEGER(4). Unit number of the child window to be made active.Results:The result type is INTEGER(4). The result is 1 if successful; otherwise, 0.2-386

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!