Alex Szpakowski
|
83e0efb5b4
Fixed indentation.
|
10 years ago |
Alex Szpakowski
|
a69f722f0f
love.math.setRandomSeed / RandomGenerator:setSeed now hashes the seed value before using it, which gives a much better distribution when comparing the results of different but similar seeds.
|
10 years ago |
Alex Szpakowski
|
a7e4148869
Merged default into minor
|
10 years ago |
Alex Szpakowski
|
c7b45b3505
Updated copyright for the new year
|
10 years ago |
Alex Szpakowski
|
d4ad571780
Un-reverted commit 14ca947 (love.math.setRandomSeed internally calling random() a few times) for the minor branch.
|
11 years ago |
Alex Szpakowski
|
e8009bb4cb
Reverted commit 14ca947 (love.math.setRandomSeed internally calling random() a few times.) The change can break existing 0.9.x games so it will be pushed back to the minor branch.
|
11 years ago |
Alex Szpakowski
|
3cf2a8f8a2
Improved error message when love.math.setRandomSeed(0) is attempted (resolves issue #876)
|
11 years ago |
Alex Szpakowski
|
4ea18d8bbc
love.math.setRandomSeed now calls random() a couple times internally, to make similar seeds give less similar results when random() is called for the first time after setRandomSeed.
|
11 years ago |
Alex Szpakowski
|
d07e31370d
Added RandomGenerator:getState and RandomGenerator:setState (resolves issue #831.)
|
11 years ago |
Alex Szpakowski
|
3120a0e650
Goodbye 2013, hello 2014!
|
11 years ago |
Alex Szpakowski
|
1c8abc74aa
Renamed love.math.g/setRandomState and rng:g/setState to love.math.g/setRandomSeed and rng:g/setSeed.
|
11 years ago |
Alex Szpakowski
|
674ad9247a
Added some checks for invalid numbers to love.math.setRandomState
|
12 years ago |
Alex Szpakowski
|
0447d1e7c5
Changed love.math.randomnormal([mean], stddev) to love.math.randomNormal(stddev, [mean]);
|
12 years ago |
Alex Szpakowski
|
d98e2cb40c
Renamed randnormal to randomnormal
|
12 years ago |
Alex Szpakowski
|
3046981fce
Added love.math.newRandomGenerator. Returns a RNG object with its own seed and random methods.
|
12 years ago |