From 98da2a419ad77ed0aa0128f1c3074c512f466e24 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Sun, 21 Sep 2014 14:14:08 +0100 Subject: rm sample_n --- sample_n | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100755 sample_n diff --git a/sample_n b/sample_n deleted file mode 100755 index 286646b..0000000 --- a/sample_n +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/env ruby - -require 'trollop' - - -opts = Trollop::options do - banner "sample --size --population " - opt :size, "Sample size (percentage).", :type => :int - opt :population, "'Population' (number \in N)", :type => :int -end - -prng = Random.new(Random.new_seed) -1.upto(opts[:population]) { |i| - puts i if prng.rand(1..opts[:size])==0 -} - -- cgit v1.2.3