flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > Macros and advanced polly code teory, and code request |
Author |
|
vid 16 Feb 2006, 16:54
some idea (not real code)
Code: rand_val = timestamp ;i forgot how to get it macro get_random { rand_val = rand_val ror 30 + 3*rand_val - 5*rand_val + 12312311313 ;etc } random if ... & (rand_val mod 3 = 1) else if ... & (rand_val mod 3 = 2) else ... this may work for you, but you need to find good expression to generate fine values (especially be careful about value 0, that's why i always add some constant) |
|||
16 Feb 2006, 16:54 |
|
Tomasz Grysztar 16 Feb 2006, 17:30
Actually there already is Random number macro listed in the Macroinstruction FAQ.
|
|||
16 Feb 2006, 17:30 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.