MoJlo4HuK,
непонятная проблема...
var objects = [{
key: 25,
key2: 33,
key3: 14
},{
key: 25,
key2: 33,
key3: 14
}];
function rand(n)
{
return n * Math.random()|0
}
function randObj(arr)
{
var num = rand(arr.length);
var item = arr[num];
var keysItem = Object.keys(item);
num = rand(keysItem.length);
var key = keysItem[num];
return item[key]
}
alert(randObj(objects));