假设我在DolphinDB database中有下面这张表:
t=table(1..3 as id,4..6 as v1,7..9 as v2)
有没有办法将这个表的所有行重新随机排序一下?
可以通过shuffle函数实现:
t[shuffle(0..(size(t)-1))]
结果如下: