{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "### Pick Sampling" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " " ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "%useLatestDescriptors\n", "%use lets-plot" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "fun genWord(length:Int):String {\n", " val letters = ('a'..'z')\n", " return List(length) { letters.random() }.joinToString(\"\")\n", "} \n", "\n", "fun genWordSet(n:Int):Set