home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / utilities / utilst / useful / Random < prev    next >
Unknown  |  1995-10-04  |  1.2 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default
100% TrID Adobe PhotoShop Brush default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000010| 2c 00 00 00 34 00 00 00 | 5c 00 00 00 40 00 0d 00 |,...4...|\...@...|
|00000020| 4c 04 00 00 2f 04 00 00 | 00 00 00 00 52 61 6e 64 |L.../...|....Rand|
|00000030| 6f 6d 00 00 52 61 6e 64 | 6f 6d 20 49 4e 75 6d 62 |om..Rand|om INumb|
|00000040| 65 72 73 20 20 20 20 20 | 32 2e 31 30 20 28 32 31 |ers |2.10 (21|
|00000050| 20 4a 75 6e 20 31 39 39 | 35 29 00 00 43 72 65 61 | Jun 199|5)..Crea|
|00000060| 74 65 53 65 65 64 00 00 | 00 00 00 00 00 00 00 00 |teSeed..|........|
|00000070| 00 00 00 00 94 00 00 00 | 4e 75 6d 62 65 72 00 00 |........|Number..|
|00000080| 00 00 00 00 00 00 00 00 | 00 00 00 00 f0 01 00 00 |........|........|
|00000090| 00 00 00 00 1b 00 20 70 | 72 6f 76 69 64 65 73 20 |...... p|rovides |
|000000a0| 61 20 77 61 79 20 6f 66 | 20 73 65 74 74 69 6e 67 |a way of| setting|
|000000b0| 20 74 68 65 20 72 61 6e | 64 6f 6d 20 6e 75 6d 62 | the ran|dom numb|
|000000c0| 65 72 20 73 65 65 64 2e | 20 20 49 74 20 70 72 6f |er seed.| It pro|
|000000d0| 76 69 64 65 73 20 74 68 | 65 20 66 6f 6c 6c 6f 77 |vides th|e follow|
|000000e0| 69 6e 67 20 53 57 49 20 | 3a 0a 0d 0d 22 52 61 6e |ing SWI |:..."Ran|
|000000f0| 64 6f 6d 5f 43 72 65 61 | 74 65 53 65 65 64 22 2c |dom_Crea|teSeed",|
|00000100| 20 6e 75 6d 62 65 72 20 | 54 4f 20 72 65 74 75 72 | number |TO retur|
|00000110| 6e 0a 0d 0d 57 68 65 72 | 65 20 3a 0d 6e 75 6d 62 |n...Wher|e :.numb|
|00000120| 65 72 20 69 73 20 74 68 | 65 20 64 65 63 69 6d 61 |er is th|e decima|
|00000130| 6c 20 6e 75 6d 62 65 72 | 20 79 6f 75 20 77 61 6e |l number| you wan|
|00000140| 74 20 74 6f 20 62 65 20 | 66 6f 72 20 74 68 65 20 |t to be |for the |
|00000150| 73 65 65 64 20 28 30 20 | 2d 20 34 32 39 34 39 36 |seed (0 |- 429496|
|00000160| 37 32 39 35 29 0d 72 65 | 74 75 72 6e 20 69 73 20 |7295).re|turn is |
|00000170| 74 68 65 20 72 65 73 75 | 6c 74 61 6e 74 20 73 65 |the resu|ltant se|
|00000180| 65 64 20 6e 75 6d 62 65 | 72 20 69 66 20 6e 75 6d |ed numbe|r if num|
|00000190| 62 65 72 20 69 73 20 30 | 0a 0d 0d 49 66 20 74 68 |ber is 0|...If th|
|000001a0| 65 20 6e 75 6d 62 65 72 | 20 69 73 20 30 2c 20 74 |e number| is 0, t|
|000001b0| 68 65 6e 20 74 68 65 20 | 6d 6f 6e 6f 74 6f 6e 69 |hen the |monotoni|
|000001c0| 63 20 74 69 6d 65 20 69 | 73 20 75 73 65 64 0a 0d |c time i|s used..|
|000001d0| 0d 4e 69 63 68 6f 6c 61 | 73 20 4b 69 6e 67 73 6c |.Nichola|s Kingsl|
|000001e0| 65 79 2e 20 20 55 73 65 | 20 66 72 65 65 6c 79 00 |ey. Use| freely.|
|000001f0| 1b 00 20 70 72 6f 76 69 | 64 65 73 20 61 20 75 73 |.. provi|des a us|
|00000200| 65 66 75 6c 20 77 61 79 | 20 6f 66 20 67 65 74 74 |eful way| of gett|
|00000210| 69 6e 67 20 72 61 6e 64 | 6f 6d 20 6e 75 6d 62 65 |ing rand|om numbe|
|00000220| 72 73 20 62 65 74 77 65 | 65 6e 20 31 20 61 6e 64 |rs betwe|en 1 and|
|00000230| 20 61 20 67 69 76 65 6e | 20 68 69 67 68 65 72 20 | a given| higher |
|00000240| 76 61 6c 75 65 2e 20 20 | 49 74 20 70 72 6f 76 69 |value. |It provi|
|00000250| 64 65 73 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |des the |followin|
|00000260| 67 20 53 57 49 20 3a 0a | 0d 0d 22 52 61 6e 64 6f |g SWI :.|.."Rando|
|00000270| 6d 5f 4e 75 6d 62 65 72 | 22 20 68 69 67 68 65 73 |m_Number|" highes|
|00000280| 74 20 54 4f 20 76 61 6c | 75 65 0a 0d 0d 57 68 65 |t TO val|ue...Whe|
|00000290| 72 65 20 3a 0d 68 69 67 | 68 65 73 74 20 69 73 20 |re :.hig|hest is |
|000002a0| 74 68 65 20 68 69 67 68 | 65 73 74 20 76 61 6c 75 |the high|est valu|
|000002b0| 65 20 74 68 61 74 20 79 | 6f 75 20 77 61 6e 74 2e |e that y|ou want.|
|000002c0| 20 20 54 68 65 20 76 61 | 6c 75 65 73 20 61 6c 6c | The va|lues all|
|000002d0| 6f 77 65 64 20 61 72 65 | 20 62 65 74 77 65 65 6e |owed are| between|
|000002e0| 20 30 20 61 6e 64 20 32 | 35 35 20 28 26 46 46 29 | 0 and 2|55 (&FF)|
|000002f0| 2e 20 20 49 66 20 74 68 | 65 20 76 61 6c 75 65 20 |. If th|e value |
|00000300| 69 73 20 30 2c 20 74 68 | 65 6e 20 61 6c 6c 20 6e |is 0, th|en all n|
|00000310| 75 6d 62 65 72 73 20 62 | 65 74 77 65 65 6e 20 30 |umbers b|etween 0|
|00000320| 20 61 6e 64 20 34 32 39 | 34 39 36 37 32 39 35 20 | and 429|4967295 |
|00000330| 28 26 46 46 46 46 46 46 | 46 46 29 20 61 72 65 20 |(&FFFFFF|FF) are |
|00000340| 61 6c 6c 6f 77 65 64 0d | 49 66 20 74 68 65 20 68 |allowed.|If the h|
|00000350| 69 67 68 65 73 74 20 76 | 61 6c 75 65 20 69 73 20 |ighest v|alue is |
|00000360| 67 72 65 61 74 65 72 20 | 74 68 61 6e 20 32 35 35 |greater |than 255|
|00000370| 2c 20 74 68 65 6e 20 6f | 6e 6c 79 20 74 68 65 20 |, then o|nly the |
|00000380| 6c 65 61 73 74 0d 73 69 | 67 6e 69 66 69 63 61 6e |least.si|gnifican|
|00000390| 74 20 62 79 74 65 20 69 | 73 20 75 73 65 64 2e 0d |t byte i|s used..|
|000003a0| 76 61 6c 75 65 20 69 73 | 20 74 68 65 20 72 65 73 |value is| the res|
|000003b0| 75 6c 74 61 6e 74 20 72 | 61 6e 64 6f 6d 20 6e 75 |ultant r|andom nu|
|000003c0| 6d 62 65 72 2c 20 77 68 | 69 63 68 20 69 73 20 6e |mber, wh|ich is n|
|000003d0| 65 76 65 72 20 68 69 67 | 68 65 72 20 74 68 61 6e |ever hig|her than|
|000003e0| 20 74 68 65 20 68 69 67 | 68 65 73 74 20 76 61 6c | the hig|hest val|
|000003f0| 75 65 2e 20 20 54 68 65 | 20 72 65 73 75 6c 74 20 |ue. The| result |
|00000400| 73 74 61 72 74 73 20 66 | 72 6f 6d 20 30 0a 0d 0d |starts f|rom 0...|
|00000410| 4e 69 63 68 6f 6c 61 73 | 20 4b 69 6e 67 73 6c 65 |Nicholas| Kingsle|
|00000420| 79 2e 20 20 55 73 65 20 | 66 72 65 65 6c 79 00 52 |y. Use |freely.R|
|00000430| 61 6e 64 6f 6d 00 43 72 | 65 61 74 65 53 65 65 64 |andom.Cr|eateSeed|
|00000440| 00 4e 75 6d 62 65 72 00 | 00 00 00 00 00 c0 9c e5 |.Number.|........|
|00000450| 00 00 5b e3 02 00 00 0a | 01 00 5b e3 05 00 00 0a |..[.....|..[.....|
|00000460| 19 00 00 ea 02 40 2d e9 | 00 00 50 e3 42 00 00 0f |.....@-.|..P.B...|
|00000470| 00 00 8c e5 02 80 bd e8 | 1e 40 2d e9 ff 30 00 e2 |........|.@-..0..|
|00000480| 00 00 9c e5 00 00 50 e3 | ff 00 a0 03 11 20 a0 e3 |......P.|..... ..|
|00000490| c0 16 a0 e1 40 1c 21 e0 | e1 10 b0 e1 00 00 b0 e0 |....@.!.|........|
|000004a0| 01 20 52 e2 f9 ff ff 1a | 00 00 8c e5 00 00 53 e3 |. R.....|......S.|
|000004b0| ff 00 00 12 90 03 04 10 | 04 00 80 10 20 04 a0 11 |........|.... ...|
|000004c0| 1e 80 bd e8 40 e5 8e e3 | 0e f0 b0 e1 00 00 8f e2 |....@...|........|
|000004d0| fb ff ff ea 66 06 00 00 | 52 61 6e 64 6f 6d 20 3a |....f...|Random :|
|000004e0| 20 55 6e 6b 6e 6f 77 20 | 53 57 49 00 | Unknow |SWI. |
+--------+-------------------------+-------------------------+--------+--------+