Still converting and trying to understand some C stuff to use in BMax. I looked up random generators in C and I'm still a bit lost. Consider the C code:
I know that it makes random numbers. Also that it is called so forth:
How would that translate to BMax? More specifically, the low and high constraints for the random number to be generated ie. i = Rand(low,high)
?
#define MWC ((s1 = 36969 * (v1 & 0xffff) + (v1 >>> 16)) << 16) ^ (s2 = 30963 * (v2 & 0xffff) + (v2 >>> 16));
I know that it makes random numbers. Also that it is called so forth:
i=(MWC>>8)&127
How would that translate to BMax? More specifically, the low and high constraints for the random number to be generated ie. i = Rand(low,high)
?