Random variables
A random variable is a function from the outcome space to some value space.
Y:S→{T,F},Y(s)="does s have at least one H?"
Y(HH)=T,Y(HT)=T,Y(TH)=T,Y(TT)=F.
The word random is about the input, not the mapping. The function itself is deterministic.