Set random number to database collection items

You need to set on the element itself, not on the data that comes from the dataset.

export function kontrol() {
  $w('#repeater1').onItemReady(($item, itemData, index) => {
    if (itemData.ilanNumarasi !== '') {
      console.log('Boş')
      $item('#ilanNumarasi').text = String(Math.random() * (1000 + 1))
      console.log('Dolu')
    }
  })
}