News for hackers. Stuff that matters.
Re:Dimsum is like head or tail, but pulls randomly from the ... by patrick_grant on Monday November 26, 2012 @04:35PM (#4834137)
I really don't like how this behaves for populating the array initially, and how it behaves for small inputs...

  $ seq 15 | dimsum  -n 10 
  14
  12
  3
  4
  5
  6
  7
  8
  9
  10
Re:Dimsum is like head or tail, but pulls randomly from the ... by taltman1 on Wednesday November 28, 2012 @04:56PM (#4845002)
Looks like a valid sample to me. Are you bothered by the ordering of the sample members? Then I'd continue the pipeline to include a call to shuf.
Re:Dimsum is like head or tail, but pulls randomly from the ... by snoble on Monday November 26, 2012 @04:47PM (#4834217)
yup, the order is biased. definitely worth a couple of minutes to fix that