Quickstart at https://cloud.google.com/functions/docs/quickstart
Set account and project: gcloud init
Choose choice [3] then select account and project
To deploy gcloud beta functions deploy rng --trigger-http --runtime nodejs10
URL endpoint: https://us-central1-gradebook-71f6b.cloudfunctions.net/rng
Functions emulator: https://cloud.google.com/functions/docs/emulator
To test functions start debug
functions call rng --data=''
To stop functions debug stop