UniBasic Commands Reference - Rocket Software
UniBasic Commands Reference - Rocket Software UniBasic Commands Reference - Rocket Software
RNDSEED Syntax RNDSEED expr Description The UniBasic RNDSEED command enables you to “seed” the pseudo random number generator. The RND function gives you a different sequence of numbers each time. RNDSEED generates the same sequence of random numbers each time you run a program with the same seed. expr is a numeric seed point. Each time you use the same expr, RND generates the same sequence of random numbers. Example In the following program segment, RND produces an array of random numbers to replace the values in VCOST. Because RNDSEEN is a constant, this program always produces the same series of random numbers. Without this statement, the program produces a different set of random numbers each time it is run. 1-694 UniBasic Commands Reference RNDSEED 234 VCOST = 100:@VM:200:@VM:0@VM:100:@VM:200:@VM:300 VCOST = RND(VCOST) PRINT VCOST Related Command UniBasic RND
RQM RQM is a synonym for the SLEEP function. For more information, see SLEEP. Synonym SLEEP RQM 1-695
- Page 686 and 687: Parameters The following table desc
- Page 688 and 689: Related Commands UniBasic CLOSE, DE
- Page 690 and 691: Parameter Description Examples In t
- Page 692 and 693: READVL Syntax READVL var FROM [file
- Page 694 and 695: Example In the following example, R
- Page 696 and 697: Parameters The following table desc
- Page 698 and 699: READXBCK Syntax READXBCK dyn.array.
- Page 700 and 701: READXFWD Syntax READXFWD dyn.array.
- Page 702 and 703: ReadXMLData Syntax ReadXMLData(xml_
- Page 704 and 705: RECORDLOCKED Syntax RECORDLOCKED (f
- Page 706 and 707: STATUS Function Return Values After
- Page 708 and 709: Parameter Description Examples In t
- Page 710 and 711: RECORDLOCKU Syntax RECORDLOCKU [fil
- Page 712 and 713: RELEASE Syntax RELEASE [file.var [,
- Page 714 and 715: ReleaseXML Syntax ReleaseXML(XMLhan
- Page 716 and 717: Example In the following example, c
- Page 718 and 719: Parameter Description The SETTING c
- Page 720 and 721: In some implementations, the values
- Page 722 and 723: REMOVE Syntax REMOVE(dyn.array.var,
- Page 724 and 725: REPLACE Syntax REPLACE(dyn.array.ex
- Page 726 and 727: In the next example, the program se
- Page 728 and 729: RESIZET Syntax RESIZET [UNIT(mu.exp
- Page 730 and 731: RETURN Syntax RETURN [TO label[:]]
- Page 732 and 733: Examples In the following example,
- Page 734 and 735: Example In the following example, t
- Page 738 and 739: SADD Syntax SADD(x, y) Description
- Page 740 and 741: The following table describes the s
- Page 742 and 743: Example In the following example, t
- Page 744 and 745: SELECT Syntax SELECT file.var [TO {
- Page 746 and 747: Examples The following program segm
- Page 748 and 749: SELECTINDEX Syntax SELECTINDEX inde
- Page 750 and 751: Related Commands UniBasic DELETELIS
- Page 752 and 753: Related Commands UniBasic DELETELIS
- Page 754 and 755: Note: SEND with the X option suppre
- Page 756 and 757: SEQS Syntax SEQS("char.expr") Descr
- Page 758 and 759: The following table describes the s
- Page 760 and 761: Parameters The following table desc
- Page 762 and 763: The following table describes the s
- Page 764 and 765: setHTTPDefault Syntax setHTTPDefaul
- Page 766 and 767: The following table describes the s
- Page 768 and 769: Parameters The following table desc
- Page 770 and 771: Examples In the following example,
- Page 772 and 773: setPrivateKey Syntax setPrivateKey(
- Page 774 and 775: setRandomSeed Syntax setRandomSeed(
- Page 776 and 777: setRequestHeader Syntax setRequestH
- Page 778 and 779: setSocketOptions Syntax setSocketOp
- Page 780 and 781: showSecurityContext Syntax showSecu
- Page 782 and 783: SIGNATURE Syntax SIGNATURE(algorith
- Page 784 and 785: Return Code Status 1-742 UniBasic C
RNDSEED<br />
Syntax<br />
RNDSEED expr<br />
Description<br />
The <strong>UniBasic</strong> RNDSEED command enables you to “seed” the pseudo random<br />
number generator. The RND function gives you a different sequence of numbers each<br />
time. RNDSEED generates the same sequence of random numbers each time you run<br />
a program with the same seed.<br />
expr is a numeric seed point. Each time you use the same expr, RND generates the<br />
same sequence of random numbers.<br />
Example<br />
In the following program segment, RND produces an array of random numbers to<br />
replace the values in VCOST. Because RNDSEEN is a constant, this program always<br />
produces the same series of random numbers. Without this statement, the program<br />
produces a different set of random numbers each time it is run.<br />
1-694 <strong>UniBasic</strong> <strong>Commands</strong> <strong>Reference</strong><br />
RNDSEED 234<br />
VCOST = 100:@VM:200:@VM:0@VM:100:@VM:200:@VM:300<br />
VCOST = RND(VCOST)<br />
PRINT VCOST<br />
Related Command<br />
<strong>UniBasic</strong><br />
RND