home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: LaTeX Document
(document/latex).
You can browse this item here: tex
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| LaTeX Document (document/latex)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| LaTeX document text
| default
| |
99%
| file
| LaTeX document, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/281 LaTeX (Subdocument)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 5c 73 65 63 74 69 6f 6e | 7b 53 74 61 6e 64 61 72 |\section|{Standar|
|00000010| 64 20 4d 6f 64 75 6c 65 | 20 5c 73 65 63 74 63 6f |d Module| \sectco|
|00000020| 64 65 7b 72 61 6e 64 7d | 7d 0a 0a 5c 73 74 6d 6f |de{rand}|}..\stmo|
|00000030| 64 69 6e 64 65 78 7b 72 | 61 6e 64 7d 20 54 68 69 |dindex{r|and} Thi|
|00000040| 73 20 6d 6f 64 75 6c 65 | 20 69 6d 70 6c 65 6d 65 |s module| impleme|
|00000050| 6e 74 73 20 61 20 70 73 | 65 75 64 6f 2d 72 61 6e |nts a ps|eudo-ran|
|00000060| 64 6f 6d 20 6e 75 6d 62 | 65 72 0a 67 65 6e 65 72 |dom numb|er.gener|
|00000070| 61 74 6f 72 20 77 69 74 | 68 20 61 6e 20 69 6e 74 |ator wit|h an int|
|00000080| 65 72 66 61 63 65 20 73 | 69 6d 69 6c 61 72 20 74 |erface s|imilar t|
|00000090| 6f 20 5c 63 6f 64 65 7b | 72 61 6e 64 28 29 7d 20 |o \code{|rand()} |
|000000a0| 69 6e 20 43 5c 40 2e 20 | 20 49 74 20 64 65 66 69 |in C\@. | It defi|
|000000b0| 6e 65 73 0a 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |nes.the |followin|
|000000c0| 67 20 66 75 6e 63 74 69 | 6f 6e 73 3a 0a 0a 5c 72 |g functi|ons:..\r|
|000000d0| 65 6e 65 77 63 6f 6d 6d | 61 6e 64 7b 5c 69 6e 64 |enewcomm|and{\ind|
|000000e0| 65 78 73 75 62 69 74 65 | 6d 7d 7b 28 69 6e 20 6d |exsubite|m}{(in m|
|000000f0| 6f 64 75 6c 65 20 72 61 | 6e 64 29 7d 0a 5c 62 65 |odule ra|nd)}.\be|
|00000100| 67 69 6e 7b 66 75 6e 63 | 64 65 73 63 7d 7b 72 61 |gin{func|desc}{ra|
|00000110| 6e 64 7d 7b 7d 0a 52 65 | 74 75 72 6e 73 20 61 6e |nd}{}.Re|turns an|
|00000120| 20 69 6e 74 65 67 65 72 | 20 72 61 6e 64 6f 6d 20 | integer| random |
|00000130| 6e 75 6d 62 65 72 20 69 | 6e 20 74 68 65 20 72 61 |number i|n the ra|
|00000140| 6e 67 65 20 5b 30 20 2e | 2e 2e 20 33 32 37 36 38 |nge [0 .|.. 32768|
|00000150| 29 2e 0a 5c 65 6e 64 7b | 66 75 6e 63 64 65 73 63 |)..\end{|funcdesc|
|00000160| 7d 0a 0a 5c 62 65 67 69 | 6e 7b 66 75 6e 63 64 65 |}..\begi|n{funcde|
|00000170| 73 63 7d 7b 63 68 6f 69 | 63 65 7d 7b 73 7d 0a 52 |sc}{choi|ce}{s}.R|
|00000180| 65 74 75 72 6e 73 20 61 | 20 72 61 6e 64 6f 6d 20 |eturns a| random |
|00000190| 65 6c 65 6d 65 6e 74 20 | 66 72 6f 6d 20 74 68 65 |element |from the|
|000001a0| 20 73 65 71 75 65 6e 63 | 65 20 28 73 74 72 69 6e | sequenc|e (strin|
|000001b0| 67 2c 20 74 75 70 6c 65 | 20 6f 72 20 6c 69 73 74 |g, tuple| or list|
|000001c0| 29 0a 5c 76 61 72 7b 73 | 7d 2e 0a 5c 65 6e 64 7b |).\var{s|}..\end{|
|000001d0| 66 75 6e 63 64 65 73 63 | 7d 0a 0a 5c 62 65 67 69 |funcdesc|}..\begi|
|000001e0| 6e 7b 66 75 6e 63 64 65 | 73 63 7d 7b 73 72 61 6e |n{funcde|sc}{sran|
|000001f0| 64 7d 7b 73 65 65 64 7d | 0a 49 6e 69 74 69 61 6c |d}{seed}|.Initial|
|00000200| 69 7a 65 73 20 74 68 65 | 20 72 61 6e 64 6f 6d 20 |izes the| random |
|00000210| 6e 75 6d 62 65 72 20 67 | 65 6e 65 72 61 74 6f 72 |number g|enerator|
|00000220| 20 77 69 74 68 20 74 68 | 65 20 67 69 76 65 6e 20 | with th|e given |
|00000230| 69 6e 74 65 67 72 61 6c | 20 73 65 65 64 2e 0a 57 |integral| seed..W|
|00000240| 68 65 6e 20 74 68 65 20 | 6d 6f 64 75 6c 65 20 69 |hen the |module i|
|00000250| 73 20 66 69 72 73 74 20 | 69 6d 70 6f 72 74 65 64 |s first |imported|
|00000260| 2c 20 74 68 65 20 72 61 | 6e 64 6f 6d 20 6e 75 6d |, the ra|ndom num|
|00000270| 62 65 72 20 69 73 20 69 | 6e 69 74 69 61 6c 69 7a |ber is i|nitializ|
|00000280| 65 64 20 77 69 74 68 0a | 74 68 65 20 63 75 72 72 |ed with.|the curr|
|00000290| 65 6e 74 20 74 69 6d 65 | 2e 0a 5c 65 6e 64 7b 66 |ent time|..\end{f|
|000002a0| 75 6e 63 64 65 73 63 7d | 0a |uncdesc}|. |
+--------+-------------------------+-------------------------+--------+--------+