Create ranTwave.R