awk/testdir/tt.14

8 lines
172 B
Plaintext
Raw Normal View History

2019-06-23 05:13:57 -04:00
function abs(x) { return (x < 0) ? -x : x }
BEGIN { n = 1000
for (i = 1; i < n; i++) x[i] = rand()
for (i in x)
for (j in x)
if (abs(x[i]-x[j]) < .01) break
}