How does Mini Program display the value of a specified subscript of an array in wxml?

I am making a Mini Program who gives the corresponding result according to the name entered by the user. He has changed the user"s name into a number. How can I display the corresponding data in wxml? Does
need wx:for and wx:if to be used together?

array:
human: [{goods: "candlelight"},

  { goods: ""},
  { goods: ""},
  {goods: ""},
  {goods: ""},
  {goods: ""},
  {goods: ""},
  {goods: ""},
  {goods: ""},
  {goods: ""},
  {goods: ""},]
  
  :
  //seed
  Math.seed = this.data.words;
Math.seededRandom = function(max, min) {
  max = max || 0;
  min = min || 10;
  Math.seed = (Math.seed * 9301 + 49297) % 233280;
  var rnd = Math.seed / 233280.0;
  return min + rnd * (max - min);
};
for (var i = 0; i < 10; iPP) {
  console.log(Math.seededRandom());
}

//last
this.setData({
  last: Math.seededRandom()
});

//lastss
this.setData({
  ss: parseInt(this.data.last)
});

sswxml
Jul.16,2021

can be solved directly in js? Add a variable to the data, get the ss and assign the array corresponding to the value of ss to the variable, and the new variable is bound in wxml.


solved, and finally tied up as a ghost {{humanss1] .humanity}

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b37a89-2b415.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b37a89-2b415.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?