Rhinoscriptsyntax into Rhino Common - frange function/method

You can also use this method, that’ll work in GHPython as well (or inspect the source code directly, also covered in this thread):