diff options
author | Adolfo Jayme Barrientos <fitojb@ubuntu.com> | 2016-05-14 22:58:45 -0500 |
---|---|---|
committer | Adolfo Jayme Barrientos <fitojb@ubuntu.com> | 2016-05-14 22:58:45 -0500 |
commit | ce76ee35c4ee0c5cd6e7b450df2d95b289461e2d (patch) | |
tree | dbe0faf29d937149837d2c6b073b387068a64f90 | |
parent | 8799ced9da7b7aeb37fadf700e062cc3255ebfe0 (diff) |
tdf#99809 Add back some syntax highlighting tags…
… accidentally removed in 8799ced9da7b7aeb37fadf700e062cc3255ebfe0
Change-Id: I799b62bb169dbc0505ed03deef6e460d75a66e9d
-rw-r--r-- | source/text/sbasic/shared/03080301.xhp | 8 | ||||
-rw-r--r-- | source/text/sbasic/shared/03080302.xhp | 8 |
2 files changed, 10 insertions, 6 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> diff --git a/source/text/sbasic/shared/03080302.xhp b/source/text/sbasic/shared/03080302.xhp index 7ba71b641b..16e93d95ab 100644 --- a/source/text/sbasic/shared/03080302.xhp +++ b/source/text/sbasic/shared/03080302.xhp @@ -39,8 +39,9 @@ </section> <paragraph id="hd_id3153897" role="heading" level="2" xml-lang="en-US">Syntax:</paragraph> +<bascode> <paragraph id="par_id3150543" role="bascode" xml-lang="en-US">Rnd [(Expression)]</paragraph> - +</bascode> <paragraph id="hd_id3149655" role="heading" level="2" xml-lang="en-US">Return value:</paragraph> <paragraph id="par_id3154365" role="paragraph" xml-lang="en-US">Double</paragraph> @@ -51,6 +52,7 @@ <embed href="text/sbasic/shared/00000003.xhp#err5"/> <paragraph id="hd_id3151118" role="heading" level="2" xml-lang="en-US">Example:</paragraph> +<bascode> <paragraph id="par_idm1341382704" role="bascode" localize="false" xml-lang="en-US">Sub ExampleRandomSelect</paragraph> <paragraph id="par_idm1341381472" role="bascode" localize="false" xml-lang="en-US">Dim iVar As Integer</paragraph> <paragraph id="par_idm1341380240" role="bascode" localize="false" xml-lang="en-US"> iVar = Int((15 * Rnd) -2)</paragraph> @@ -65,10 +67,10 @@ <paragraph id="par_id3155602" role="bascode" xml-lang="en-US"> Print "Outside range 1 to 10"</paragraph> <paragraph id="par_idm1341365792" role="bascode" localize="false" xml-lang="en-US"> End Select</paragraph> <paragraph id="par_idm1341364560" role="bascode" localize="false" xml-lang="en-US">End Sub</paragraph> - +</bascode> <section id="relatedtopics"> <paragraph id="par_id110520162210036951" role="paragraph" localize="false" xml-lang="en-US"><embedvar href="text/sbasic/shared/03080301.xhp#heading_randomize"/></paragraph> </section> </body> -</helpdocument>
\ No newline at end of file +</helpdocument> |