require(["dojo/parser", "dojo/_base/lang", "dojo/_base/declare", "dijit/registry", "dojo/store/JsonRest", "dojo/dom", "dojo/dom-style", "dojo/html", "dojo/data/ItemFileReadStore", "dojo/domReady!"], function(parser, lang, declare, registry, JsonRest, dom, domStyle, html, ItemFileReadStore) { html.set(dom.byId("MyRandomText"),""+getMyRandomText()+""); function getMyRandomText() { const alphaList = "ABCDEFGHIJKLMNPQRSTUVWXYZ"; var randomLetterIndex = Math.floor(Math.random() * alphaList.length); var randomTextIndex = Math.floor(Math.random() * 14); return myRandomText_[randomTextIndex] + "_" + alphaList.charAt(randomLetterIndex); } });