flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Roman 19 Jul 2025, 18:44
fasmw 1.73
How get random numbers ? I want generate Brownian noise. |
|||
![]() |
|
AsmGuru62 19 Jul 2025, 22:24
There are also instructions RDRAND/RDSEED.
|
|||
![]() |
|
Roman 19 Jul 2025, 22:47
RDTSC good Idea?
|
|||
![]() |
|
revolution 19 Jul 2025, 23:10
Roman wrote: RDTSC good Idea? In general RDTSC is awful for randomness, but for a simple unimportant task it can be perfectly fine to use RDTSC. |
|||
![]() |
|
Roman 20 Jul 2025, 14:41
Code: ;RandSeed dd 0 add eax,287123 imul edx,[RandSeed],08088405H inc edx mov [RandSeed], edx mul edx ;in eax=random number |
|||
![]() |
|
AsmGuru62 20 Jul 2025, 18:51
Probably, some testing of the sequence is needed to verify the "randomness".
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.