Guest User

Untitled

a guest
Apr 29th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
F# 0.24 KB | None | 0 0
  1. open System
  2. let avantgarde() =
  3.     let rand = Random()
  4.     let melody = [ for i in 1..20 -> (rand.NextDouble() * 500.) |> int, (rand.NextDouble() * 1540. + 220.) |> int ]
  5.     for (duration, note) in melody do
  6.         Console.Beep(note, duration)
Add Comment
Please, Sign In to add comment