import math


def generate_sine(offset: float = 0,
                  sine_range: float = 1,
                  second: int = 0,
                  second_range: int = 60):
    """Return the point along an optionally-transformed sine wave for a given second"""
    return sine_range * math.sin((second / second_range) * 2 * math.pi) + offset