To Failenx:
Something like this , example: Axe , Str+(random number).
To avalya:
Oh ok thx , i'll just stick to the old method.
I think there's a way if you use some sort of item indexing system. With that kind of system, you would probably have an array of all the items that you have in your map. When a item is created, you can generate a random stat based on what you want.
It would be far more easier to make it using hashtables and JASS. E.g.:
Save item type id as parent key, child key 0 - Save a string that contains maybe: "Str 2 5"
When a item is created, load string of the ItemTypeId parent key, child key 0 into a string, then generate a random number between substring 4,5 and substring 6,7.
Once the random stat is generated:
Save handle id of the item as parent key, child key 0 - Save string of the stat of the item e.g.: "Str 3" (previously generated)
And when the item is picked:
load string from the hashtable: parent key handle id of the picked item, child key 0
Use substring 0,3 to check the first 3 characters of the string, if it's Str, give the unit who picked the item a str bonus ability, then set the level of the ability to substring 4,5.
I know this is extremely messy and may be complicated for you to do, but what I wanted to tell you that it's totally possible to generate random stat but will require some work. And you need to "instantiate" every item type that you have in your map, then set what stat you want to be random.
Then if the player drops and picks up the item again, the stats will be random again...