Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > microsoft.public.scripting.vbscript > #12470
| From | JJ <jj4public@outlook.com> |
|---|---|
| Newsgroups | microsoft.public.scripting.vbscript |
| Subject | Initial ramdom seed number? |
| Date | 2023-01-31 12:35 +0700 |
| Organization | A noiseless patient Spider |
| Message-ID | <d965o7st8hli.3hgum3vdwyv7$.dlg@40tude.net> (permalink) |
Does anyone know the number to be used with `randomize` to set the random seed which is same as the predefined initial random seed? e.g. with below code... 'start of code. no other code exist before this line a = rnd b = rnd The `a` variable would always contain `0.7055475`, and `b` would aways contain `0.533424`. Whether it's VB6, VBA (Office), or VBScript. And regardless of OS edition and versions. e.g. WinME, WinXP, Win7; all produce the same result. I know that, setting a random seed must be done by first calling `rnd(-1)` then executing `randomize` with a specific number. But what number to use to match with the predefined initial random seed?
Back to microsoft.public.scripting.vbscript | Previous | Next — Next in thread | Find similar
Initial ramdom seed number? JJ <jj4public@outlook.com> - 2023-01-31 12:35 +0700 Re: Initial ramdom seed number? JJ <jj4public@outlook.com> - 2023-01-31 12:38 +0700
csiph-web