What do you mean by same value? I'm getting these
Code: Select all
1, 1, 9812: 3.0000813007355
1, 2, 9812: 2.9999188184738
1, 3, 9812: 3
1, 4, 9812: 4.5553710460663
1, 5, 9812: 2.7783100605011
1, 6, 9812: 3
2, 1, 9812: 2.9999188184738
2, 2, 9812: 3
2, 3, 9812: 2.9989434480667
2, 4, 9812: 2.9999188184738
2, 5, 9812: 3
2, 6, 9812: 2.7783100605011
3, 1, 9812: 3
3, 2, 9812: 4.5552086830139
3, 3, 9812: 4.5552897453308
3, 4, 9812: 3
3, 5, 9812: 4.7758421897888
3, 6, 9812: 3.0000813007355
...
This is to be expected, you can use the extra 2 dimensions that you don't need as a seed, this is good because when you need to generate the same map again you only need to store the seed value, if you want to generate a different map simply change the seed, you are using [wiki]love.math.random[/wiki] anyway so that should be what you want. What's the problem you are having with this behaviour?