Let's try this ONE more time :-)
- Posted by Al Getz <Xaxo at aol.com> Jul 05, 2004
- 521 views
For people that cant read English, i post this one more time: constant n=#10000 function Rand32() --no reason why you cant make this more inline... atom a,b,c a=rand(n)-1 b=rand(n)-1 c=a*n+b return c end function Notes: 1. For two added rnd numbers the distribution should be the same. It's multiplication that changes the distribution. 2. Two rand sequences from the same generator that show no correlation, when added, form a new rand sequence that will show no correlation to another rand sequence generated in exactly the same way. 3. Multiplication, such as rand1*rand2 changes the distribution greatly. 4. Note that to generate 'a' above you cant use rand(n). Take care, Al And, good luck with your Euphoria programming! My bumper sticker: "I brake for LED's"