From 37afe956fac93940221efb687eacdeda86c066f5 Mon Sep 17 00:00:00 2001
From: Jason Park <parkjs814@gmail.com>
Date: Sat, 21 May 2016 04:06:10 -0500
Subject: [PATCH] shorten the name of functino createRandomData to random

---
 js/module/array1d.js        | 4 ++--
 js/module/array2d.js        | 2 +-
 js/module/graph.js          | 2 +-
 js/module/weighted_graph.js | 2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/js/module/array1d.js b/js/module/array1d.js
index 839c11f..616f631 100644
--- a/js/module/array1d.js
+++ b/js/module/array1d.js
@@ -6,8 +6,8 @@ Array1DTracer.prototype = Object.create(Array2DTracer.prototype);
 Array1DTracer.prototype.constructor = Array1DTracer;
 
 var Array1D = {
-    createRandomData: function (N, min, max) {
-        return Array2D.createRandomData(1, N, min, max)[0];
+    random: function (N, min, max) {
+        return Array2D.random(1, N, min, max)[0];
     }
 };
 
diff --git a/js/module/array2d.js b/js/module/array2d.js
index 107cf8d..0fab700 100644
--- a/js/module/array2d.js
+++ b/js/module/array2d.js
@@ -26,7 +26,7 @@ Array2DTracer.prototype.clear = function () {
 };
 
 var Array2D = {
-    createRandomData: function (N, M, min, max) {
+    random: function (N, M, min, max) {
         if (!N) N = 10;
         if (!M) M = 10;
         if (min === undefined) min = 1;
diff --git a/js/module/graph.js b/js/module/graph.js
index 7dcbee3..da32826 100644
--- a/js/module/graph.js
+++ b/js/module/graph.js
@@ -26,7 +26,7 @@ GraphTracer.prototype.clear = function () {
 };
 
 var Graph = {
-    createRandomData: function (N, ratio) {
+    random: function (N, ratio) {
         if (!N) N = 5;
         if (!ratio) ratio = .3;
         var G = [];
diff --git a/js/module/weighted_graph.js b/js/module/weighted_graph.js
index ef02ee3..df87bd4 100644
--- a/js/module/weighted_graph.js
+++ b/js/module/weighted_graph.js
@@ -17,7 +17,7 @@ WeightedGraphTracer.prototype.clear = function () {
 };
 
 var WeightedGraph = {
-    createRandomData: function (N, ratio, min, max) {
+    random: function (N, ratio, min, max) {
         if (!N) N = 5;
         if (!ratio) ratio = .3;
         if (!min) min = 1;
-- 
GitLab