Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 311 Bytes

README.md

File metadata and controls

13 lines (11 loc) · 311 Bytes

Head or tail

Write a function with the following type:

hot : unit -> string

such that hot() evaluates to the string "head" or "tail" depending on a bit generated uniformly at random.

Hint. Use the function:

Random.int(n)

to generate a random integer in the range 0..n-1.