Witam czy da się zrobić tak że w polu "random" generuje mi losowe liczby?
newItem({
'RANDOM': {
cl:g.item[a].cl,
hid:Math.round(Math.random() * 111111111),
icon:g.item[a].icon,
id:Math.round(Math.random() * 111111111),
loc:g.item[a].loc,
name:g.item[a].name,
own: g.item[a].own,
pr: g.item[a].pr,
st: g.item[a].st,
stat: g.item[a].stat,
x: randomPlace.split('.')[1],
y: randomPlace.split('.')[0]
}
});
Jeżeli tak to jak?