diff options
Diffstat (limited to 'source/text/sbasic/shared/03080301.xhp')
-rw-r--r-- | source/text/sbasic/shared/03080301.xhp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source/text/sbasic/shared/03080301.xhp b/source/text/sbasic/shared/03080301.xhp index 34c4756bf3..e52e586b0f 100644 --- a/source/text/sbasic/shared/03080301.xhp +++ b/source/text/sbasic/shared/03080301.xhp @@ -39,8 +39,9 @@ </section> <paragraph id="hd_id3147573" role="heading" level="2" xml-lang="en-US">Syntax:</paragraph> +<bascode> <paragraph id="par_id3145315" role="bascode" xml-lang="en-US">Randomize [Number]</paragraph> - +</bascode> <paragraph id="hd_id3152456" role="heading" level="2" xml-lang="en-US">Parameters:</paragraph> <paragraph id="par_id3149670" role="paragraph" xml-lang="en-US"> <emph>Number:</emph> Any integer value. Used as seed to initialize the random-number generator. Equal seeds result in equal random-number sequences by the <emph>Rnd</emph> function. If the parameter is omitted, the <emph>Randomize</emph> statement will be ignored.</paragraph> <paragraph id="par_id110520161656428611" role="note" xml-lang="en-US">Unless a predictable sequence of numbers is desired, there is no need to use the <emph>Randomize</emph> statement, as the random-number generator will be initialized automatically at first use – it will be seeded using a system-provided random-number generator that produces uniformly-distributed, non-deterministic random numbers. If no such generator is available on the system, the system time will be used as seed.</paragraph> @@ -49,6 +50,7 @@ <embed href="text/sbasic/shared/00000003.xhp#err5"/> <paragraph id="hd_id3149655" role="heading" level="2" xml-lang="en-US">Example:</paragraph> +<bascode> <paragraph id="par_idm1340800064" role="bascode" localize="false" xml-lang="en-US">Sub ExampleRandomize</paragraph> <paragraph id="par_idm1340798832" role="bascode" localize="false" xml-lang="en-US">Dim iCount As Integer, iVar As Integer, sText As String</paragraph> <paragraph id="par_idm1340797584" role="bascode" localize="false" xml-lang="en-US">Dim iSpectral(10) As Integer</paragraph> @@ -63,10 +65,10 @@ <paragraph id="par_idm1341617536" role="bascode" localize="false" xml-lang="en-US"> Next iCount</paragraph> <paragraph id="par_id3148617" role="bascode" xml-lang="en-US"> MsgBox sText,0,"Spectral Distribution"</paragraph> <paragraph id="par_idm1341614560" role="bascode" localize="false" xml-lang="en-US">End Sub</paragraph> - +</bascode> <section id="relatedtopics"> <paragraph id="par_id110520162207025898" role="paragraph" localize="false" xml-lang="en-US"><embedvar href="text/sbasic/shared/03080302.xhp#heading_rnd"/></paragraph> </section> </body> -</helpdocument>
\ No newline at end of file +</helpdocument> |