So I am creating a game that will allow the player to craft weapons with random stats. But I am running into a huge issue. I made it to where the numbers generated would print out to the console, but it sets the item stats to the same number as identical items. for example
http://i1116.photobucket.com/albums/k577/jay4842/Capture%201.png
all of these items have the exact same stats.
but in the console it said other wise.
http://i1116.photobucket.com/albums/k577/jay4842/Capture%202.png
I dont know where the problem is, I only set the item stats once, but they all are set to the same number. The numbers only generate a new random number every time the program is compleatly restarted. If you have any idea please help. Thanks!
edit:
This is where the item is set and modified then added to the players inventory
http://i1116.photobucket.com/albums/k577/jay4842/Capture%203.png
This is the getRand(int x) method
http://i1116.photobucket.com/albums/k577/jay4842/Capture%204.png
sorry forgot the code