Timeline for Simulating coin flips and plotting a histogram
Current License: CC BY-SA 4.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 30 at 8:02 | history | edited | Toby Speight | CC BY-SA 4.0 |
Spelling and grammar
|
May 27, 2018 at 22:13 | vote | accept | gdyrrahitis | ||
May 27, 2018 at 22:13 | comment | added | gdyrrahitis |
Just a minor fix, on displayCoin method, it should print the current index in array, so it'd look like this: let displayCoin (frequency:int[]) = for i = 0 to frequency.Length - 1 do let value = frequency.[i] printfn "%d%s -- (%d)" i (String.replicate (value / 10) "*") value Great answer nonetheless, simplifies my code greatly!
|
|
May 26, 2018 at 11:04 | history | answered | TheQuickBrownFox | CC BY-SA 4.0 |