Yucheol Jung 6 年之前
父节点
当前提交
7a56aaf0cc
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      include/igl/randperm.cpp

+ 1 - 1
include/igl/randperm.cpp

@@ -20,7 +20,7 @@ IGL_INLINE void igl::randperm(
   I = II;
   std::random_device rd;
   std::mt19937 mt(rd());
-  std::random(I.data(),I.data()+n, mt);
+  std::shuffle(I.data(),I.data()+n, mt);
 }
 
 #ifdef IGL_STATIC_LIBRARY