Skip to content

Instantly share code, notes, and snippets.

View jaxatax's full-sized avatar
👍
HTML CSS JS

jaxatax

👍
HTML CSS JS
View GitHub Profile
@jaxatax
jaxatax / randomWord.js
Created October 2, 2019 00:02
Random word generation in JS.
Array.prototype.randomElement = function () {
return this[Math.floor(Math.random() * this.length)];
}
var consonant = [
"th",
"th",
"n",
"mb",
"r",
@jaxatax
jaxatax / storyGenerator.py
Last active April 11, 2019 20:01
This is a program that makes a random story based on the words inside the different sentence structure functions.
import pyttsx3
from random import *
engine = pyttsx3.init()
def properNoun():
global properNounThing
n = randint(1,50)
if n == 1:
properNounThing = "Barry "
elif n == 2: