Overview
Comment: | add ransul |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
9a711d8a062bd1b4f356be0d374b2089 |
User & Date: | lexi on 2018-11-11 10:19:56 |
Other Links: | manifest | tags |
Context
2018-11-11
| ||
10:26 | add ransul check-in: 77c9e366f8 user: lexi tags: trunk | |
10:19 | add ransul check-in: 9a711d8a06 user: lexi tags: trunk | |
2018-09-24
| ||
23:18 | initial commit check-in: 1521429541 user: lexi tags: trunk | |
Changes
Added ransul.ml version [7dd9d28150].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 |
let pick (r : 'a array) : 'a = r.(Random.int(Array.length r)) let chance i = (Random.int i) = 0 type root = { ra : string; en : string; } let roots = [| { ra = "lis"; en = "flower"; }; { ra = "uan"; en = "joy"; }; { ra = "saf"; en = "just"; }; { ra = "vas"; en = "gem"; }; { ra = "mir"; en = "love"; }; { ra = "uen"; en = "small"; }; { ra = "shir"; en = "need"; }; { ra = "ser"; en = "true"; }; { ra = "liv"; en = "trust"; }; { ra = "cir"; en = "strong"; }; { ra = "ros"; en = "galaxy"; }; { ra = "sur"; en = "socialism"; }; { ra = "ran"; en = "People"; }; { ra = "lin"; en = "health"; }; { ra = "nish"; en = "stone"; }; { ra = "shen"; en = "tender"; }; { ra = "cas"; en = "hope"; }; { ra = "pash"; en = "gentle"; }; { ra = "ren"; en = "generous"; }; { ra = "car"; en = "cause"; }; { ra = "han"; en = "sure"; }; { ra = "shad"; en = "wisdom"; }; { ra = "vir"; en = "spirit"; }; { ra = "has"; en = "peace"; }; { ra = "uin"; en = "heart"; }; { ra = "shal"; en = "sun"; }; { ra = "lac"; en = "air"; }; { ra = "cit"; en = "strong"; }; { ra = "cov"; en = "meaning"; }; { ra = "ien"; en = "event"; }; { ra = "sav"; en = "unity"; }; { ra = "vin"; en = "obedience"; }; { ra = "pel"; en = "comfort"; }; { ra = "vit"; en = "effort"; }; { ra = "tas"; en = "liaison"; }; { ra = "sosh"; en = "passion"; }; { ra = "ten"; en = "river"; }; { ra = "sal"; en = "sea"; }; { ra = "sel"; en = "vulnerability"; }; { ra = "til"; en = "victory"; }; { ra = "sad"; en = "bastion"; }; { ra = "tov"; en = "sacrifice"; }; { ra = "gal"; en = "belonging"; }; { ra = "ved"; en = "vigilance"; }; { ra = "cam"; en = "harvest"; }; { ra = "pan"; en = "sowing"; }; { ra = "hil"; en = "root"; }; { ra = "nus"; en = "persistence"; }; { ra = "cud"; en = "return"; }; { ra = "nom"; en = "similar"; }; { ra = "pen"; en = "blood "; }; { ra = "sish"; en = "patience"; }; { ra = "mon"; en = "gentle"; }; { ra = "tac"; en = "hard"; }; { ra = "rig"; en = "aid"; }; { ra = "nir"; en = "air"; }; { ra = "lan"; en = "leadership"; }; { ra = "cad"; en = "fortune"; }; { ra = "div"; en = "many"; }; { ra = "cos"; en = "line"; }; { ra = "dor"; en = "will"; }; { ra = "iun"; en = "bearing"; }; { ra = "uol"; en = "sky"; }; { ra = "sof"; en = "bright"; }; { ra = "tal"; en = "part"; }; { ra = "teg"; en = "mount"; }; { ra = "var"; en = "shadow "; }; { ra = "sil"; en = "light"; }; { ra = "iur"; en = "life"; }; { ra = "mad"; en = "source"; }; { ra = "far"; en = "voyage"; }; { ra = "tel"; en = "world"; }; { ra = "shet"; en = "moon"; }; { ra = "med"; en = "space"; }; { ra = "ios"; en = "water"; }; { ra = "tur"; en = "energy"; }; { ra = "ris"; en = "justice"; }; { ra = "vis"; en = "love"; }; { ra = "can"; en = "touch"; }; { ra = "len"; en = "patriot"; }; { ra = "van"; en = "forest"; }; { ra = "cef"; en = "duty"; }; { ra = "nil"; en = "peace"; }; { ra = "tir"; en = "force"; }; { ra = "tef"; en = "discipline"; }; { ra = "tar"; en = "humility"; }; { ra = "shar"; en = "girl"; }; { ra = "sar"; en = "black"; }; { ra = "uer"; en = "rose"; }; { ra = "seh"; en = "cyan"; }; { ra = "iash"; en = "blue-green"; }; { ra = "pir"; en = "silver"; }; { ra = "mat"; en = "gold"; }; { ra = "iem"; en = "glow"; }; { ra = "ian"; en = "giving"; }; |] let name () = let fst = pick roots in let lst = pick roots in (String.capitalize_ascii fst.ra) ^ (lst.ra) ^ ": " ^ fst.en ^ "-" ^ lst.en;; let () = Random.self_init () ; print_string (name()) |