In this challenge you have to make an ascii pulsing heart with rhythm problems (Heart arrhythmia) and then measure the pulse.Don't worry it's easy!
Making the heart
The heart alternates between these 2 states:
,d88b.d88b, 88888888888 `Y8888888Y' `Y888Y' `Y'
d8b d8b 888888888 `Y88888P' `Y888P' `Y8P' `Y'
each step has X seconds delay
where X is a Random (Real) number between 0.3 and 1.4 (0.3<=X<=1.4)
Measuring the Pulse
When your arrhythmia-heart starts beating, you have to measure the pulse.
We want to know the heartbeats/min.
But (like many doctors do) you only have to count the heartbeats for 15 sec and then multiply by 4
Given no input, your code must run for 15 seconds (displaying the beating heart) and then print the heart rate.
Your output should look exactly like this!
(I will run my code 2 times for you to see the different results)
First example run:
Second example run:
you must output one heart
this is code-golf
shortest answer in bytes wins!