(html (head (title "sph-lib (sph random-data)") (link (@ (rel "stylesheet") (type "text/css") (href "/css/sph.css"))) (meta (@ (name "viewport") (content "width=device-width,initial-scale=1"))) #f) (body () (div (@ (class top)) (nav (a (@ (href "/")) "start") ", " (a (@ (href "/feed.xml")) "feed")) "") (div (@ (class "middle")) (div (@ (class mtime) (title "last modification time of the current page")) "2018-11-23") (section (h1 "(sph random-data)") (div (p "generate random data. strings, booleans, lists, and more") (p "part of " (a (@ (href "../../sph-lib.html")) "sph-lib")) (#f (section (@ (class "library-name")) (h1 "import name") (p "(sph random-data)")) (section (@ (class "library-exports")) (h1 "exports") (div (ul (@ (class "doc-index")) (li (a (@ (href "#doc-b-" "primitive-random") (class (procedure))) "primitive-random")) (li (a (@ (href "#doc-b-" "random") (class (procedure))) "random")) (li (a (@ (href "#doc-b-" "random-ascii-string") (class (procedure))) "random-ascii-string")) (li (a (@ (href "#doc-b-" "random-boolean") (class (procedure))) "random-boolean")) (li (a (@ (href "#doc-b-" "random-bytevector") (class (procedure))) "random-bytevector")) (li (a (@ (href "#doc-b-" "random-list") (class (procedure))) "random-list")) (li (a (@ (href "#doc-b-" "random-string") (class (procedure))) "random-string")) (li (a (@ (href "#doc-b-" "random-weighted-boolean") (class (procedure))) "random-weighted-boolean")) (li (a (@ (href "#doc-b-" "sph-random-data-description") (class (variable))) "sph-random-data-description"))) (div (@ (class "doc-bindings")) (div (@ (id "doc-b-" "primitive-random") (class "doc-b")) (div (span (@ (class "type")) "procedure") ": " (span (@ (class "name")) "primitive-random") " " (span (@ (class "first-sig")) "a [b] ->")) "" "") (div (@ (id "doc-b-" "random") (class "doc-b")) (div (span (@ (class "type")) "procedure") ": " (span (@ (class "name")) "random") " " (span (@ (class "first-sig")) "max-value [min-value state] ->")) (div (@ (class "rest-sig")) (div "integer [integer random-state] -> integer")) (div (@ (class "description")) ("create a number between min-value and max-value.\nif the result number will be an integer or real number depends on the type of the given max-value"))) (div (@ (id "doc-b-" "random-ascii-string") (class "doc-b")) (div (span (@ (class "type")) "procedure") ": " (span (@ (class "name")) "random-ascii-string") " " (span (@ (class "first-sig")) "len ->")) (div (@ (class "rest-sig")) (div "integer -> string")) (div (@ (class "description")) ("results in a string of randomly chosen ascii characters excluding control characters"))) (div (@ (id "doc-b-" "random-boolean") (class "doc-b")) (div (span (@ (class "type")) "procedure") ": " (span (@ (class "name")) "random-boolean") " " (span (@ (class "first-sig")) " ->")) (div (@ (class "rest-sig")) (div "-> boolean")) "") (div (@ (id "doc-b-" "random-bytevector") (class "doc-b")) (div (span (@ (class "type")) "procedure") ": " (span (@ (class "name")) "random-bytevector") " " (span (@ (class "first-sig")) "size ->")) (div (@ (class "rest-sig")) (div "integer -> bytevector")) "") (div (@ (id "doc-b-" "random-list") (class "doc-b")) (div (span (@ (class "type")) "procedure") ": " (span (@ (class "name")) "random-list") " " (span (@ (class "first-sig")) "list-length [max-value min-value state] ->")) (div (@ (class "rest-sig")) (div "integer integer integer random-state -> (integer ...)")) (div (@ (class "description")) ("create a list of numbers using \"random\""))) (div (@ (id "doc-b-" "random-string") (class "doc-b")) (div (span (@ (class "type")) "procedure") ": " (span (@ (class "name")) "random-string") " " (span (@ (class "first-sig")) "[len char-set state] ->")) (div (@ (class "rest-sig")) (div "[integer string/vector] -> string")) (div (@ (class "description")) ("the default set of characters includes all the code points to which unicode has assigned a character or other meaning"))) (div (@ (id "doc-b-" "random-weighted-boolean") (class "doc-b")) (div (span (@ (class "type")) "procedure") ": " (span (@ (class "name")) "random-weighted-boolean") " " (span (@ (class "first-sig")) "percentage ->")) (div (@ (class "rest-sig")) (div "integer -> boolean")) (div (@ (class "description")) ("percentage is proportional to the amount of false values"))) (div (@ (id "doc-b-" "sph-random-data-description") (class "doc-b")) (div (span (@ (class "type")) "variable") ": " (span (@ (class "name")) "sph-random-data-description")) "" "")))))))) ()))