假设我在DolphinDB database中有下面这张表:
t=table(1..3 as id,4..6 as v1,7..9 as v2)
有没有办法将这个表的所有行randomnize一下?
可以用shuffle函数:
t[shuffle(0..(size(t)-1))]