Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Thanks for all the replies, and also, for anyone who might happen upon this asking a similar question, I found a solution that isn't exactly what I asked for, but fits the bill for my purposes.</p> <p>It is a <a href="http://en.wikipedia.org/wiki/Perlin_noise" rel="nofollow noreferrer">perlin noise</a> class that can be found <a href="http://www.flipcode.com/archives/Perlin_Noise_Class.shtml" rel="nofollow noreferrer">here</a>. I'm not sure how computationally complex this is relative to a conventional random number generator, which is a concern, since one of the planned platforms is Android. Also, perlin noise isn't the same thing as pseudorandomness, but from what I can tell, a high octave and/or frequency value should provide suitable randomness for non-cryptographic purposes, where the statistical level of true randomness isn't as important as the mere appearance of randomness.</p> <p>This solution allows seeding, and also allows sampling a random set from any point, in other words, random access randomness.</p> <p>here's an example set of regular c++ randomness (rand%200) on the left column for comparison, and perlin noise (with the equivalent of %200) on the right:</p> <pre><code>91 , 100 48 , 97 5 , 90 93 , 76 197 , 100 97 , 114 132 , 46 190 , 67 118 , 103 78 , 96 143 , 110 187 , 108 139 , 79 69 , 58 156 , 81 123 , 128 84 , 98 15 , 105 178 , 117 10 , 82 13 , 110 182 , 56 10 , 96 144 , 64 133 , 105 </code></pre> <p>both were seeded to 0</p> <p>the parameters for the perlin noise were </p> <pre><code>octaves = 8 amplitude = 100 frequency = 9999 width/height = 10000,100 </code></pre> <p>the sequential sampling order for the perlin noise was simply</p> <pre><code>for (int i=0;i&lt;24;i++) floor(Get(i,i)+100); //amplitude 100 generates noise between -100 and 100, //so adding 100 generates between 0 and 200 </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload