MCPcopy Create free account
hub / github.com/codrops/TypeShuffleAnimation / getRandomChar

Method getRandomChar

src/js/typeShuffle.js:148–150  ·  view source on GitHub ↗

* * @returns {string} a random char from this.lettersAndSymbols

()

Source from the content-addressed store, hash-verified

146 * @returns {string} a random char from this.lettersAndSymbols
147 */
148 getRandomChar() {
149 return this.lettersAndSymbols[Math.floor(Math.random() * this.lettersAndSymbols.length)];
150 }
151 /**
152 * Effect 1 - clear cells and animate each line cells (delays per line and per cell)
153 */

Callers 1

loopMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected