-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgenJunk.l
41 lines (37 loc) · 836 Bytes
/
genJunk.l
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
# needed some junk data one day
# not very pretty but they worked
# for my practical purpose
#
# picolisp belongs to Alexander Burger
# www.picolisp.com
#
# these need nothing but pil and a *nix
(de genNrs (Amount Length)
(make
(do Amount
(seed (in "/dev/urandom" (rd 10)))
(link
(pack
(make
(do Length
(link
(rand 0 9]
# change the rand numbers
# to get upper case words
# instead, '(rand 65 90)
#
# since all characters are
# roughly equally likely to
# show up there's a kind of
# lack of vowels in this
# pseudo language
(de genWrds (Amount Length)
(make
(do Amount
(seed (in "/dev/urandom" (rd 10)))
(link
(pack
(make
(do Length
(link
(char (rand 97 122]