How to randomly set the elements in Javascript Array to zero?

前端 未结 0 996
野趣味
野趣味 2020-12-10 23:25

I have a javascript matrix class with constructor

    class Matrix {
  constructor(rows, cols) {
    this.rows = rows;
    this.cols = cols;
    this.data = A         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题