Modified random distribution: Difference between revisions
m
→{{header|R}}: Syntax highlighting.
m (→{{header|Haskell}}: added a comment) |
ReeceGoding (talk | contribs) m (→{{header|R}}: Syntax highlighting.) |
||
Line 865:
=={{header|R}}==
Although it may not be immediately obvious, both modifier and gen are equivalent to the corresponding functions in the task.
<lang
modifier <- function(x) 2*abs(x - 0.5)
gen <- function()
Line 911:
+--+---------------------+---------------------+----------------------+---------------------+---------------------+--+
0 0.2 0.4 0.6 0.8 1 </pre>
=={{header|REXX}}==
If a vertical histograph (instead of a <big><big><big><</big></big></big> shaped horizontal histograph) were to be used, it would be a <big><big>V</big></big> shaped.
|