text: export function randomInteger(min, max) {
    return Math.floor(Math.random() * (max - min + 1)) + min;
  }
  
  export function randomString(l) {
    let text = '';
    const charset = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
  
    for (let i = 0; i < l; i++) {
      text += charset.charAt(Math.floor(Math.random() * charset.length));
    }
  
    return text;
  }
  
  export function scrambledText(l) {
  	let text = randomString(l);
  	const n = Math.floor(l / 6);
  	
  	for (let i = 0; i < n; i++) {
  		const index = randomInteger(0, l-1);
  		text = text.substr(0, index) + ' ' + text.substr(index + 1);
  	}
  	
  	return text;
  }
  
  export function randomText(n) {
    
    // Scrapped from http://www.manythings.org/vocabulary/lists/l/
    const wordsList = ['word', 'huge', 'wave', 'cutting', 'substance', 'score', 'higher', 'mother', 'especially', 'favorite', 'Egypt', 'minute', 'outside', 'interior', 'check', 'triangle', 'writing', 'car', 'effect', 'burst', 'hadn\'t', 'mass', 'held', 'chief', 'is', 'while', 'whale', 'Paul', 'season', 'pictured', 'George', 'slept', 'ran', 'expect', 'letter', 'station', 'nine', 'trace', 'origin', 'fallen', 'should', 'exchange', 'Negro', 'blanket', 'riding', 'adjective', 'Smith', 'railroad', 'job', 'sentence', 'down', 'sport', 'frozen', 'blue', 'value', 'bat', 'goose', 'Japanese', 'shorter', 'for', 'creature', 'wasn\'t', 'war', 'ought', 'orbit', 'into', 'bear', 'involved', 'egg', 'means', 'local', 'wind', 'member', 'beneath', 'series', 'completely', 'property', 'twelve', 'electricity', 'small', 'taken', 'note', 'son', 'success', 'bad', 'lovely', 'pot', 'silver', 'brain', 'mathematics', 'post', 'clay', 'porch', 'radio', 'occur', 'combine', 'Virginia', 'swam', 'graph', 'weak', 'information', 'tired', 'put', 'human', 'mean', 'feet', 'found', 'trap', 'east', 'such', 'pile', 'fact', 'easier', 'boy', 'idea', 'speech', 'specific', 'view', 'repeat', 'themselves', 'his', 'stop', 'Dr.', 'low', 'structure', 'electric', 'deep', 'Latin', 'truck', 'you', 'chain', 'lot', 'I\'d', 'hard', 'limited', 'threw', 'therefore', 'until', 'Jane', 'bottle', 'clear', 'said', 'matter', 'remove', 'nearer', 'medicine', 'remarkable', 'halfway', 'given', 'amount', 'parent', 'pet', 'lake', 'to', 'cat', 'author', 'snake', 'lady', 'purpose', 'dish', 'tongue', 'please', 'measure', 'search', 'calm', 'better', 'upon', 'airplane', 'compass', 'official', 'shoe', 'tight', 'someone', 'event', 'captured', 'nuts', 'instead', 'fireplace', 'clearly', 'fully', 'European', 'dress', 'board', 'silly', 'complex', 'onto', 'soil', 'cold', 'habit', 'string', 'gain', 'who', 'soldier', 'test', 'captain', 'complete', 'particles', 'over', 'Charles', 'baby', 'rhyme', 'camp', 'unusual', 'manufacturing', 'never', 'hurt', 'collect', 'add', 'mighty', 'stretch', 'drive', 'brick', 'scale', 'can', 'fifty', 'master', 'outer', 'window', 'planet', 'eleven', 'lonely', 'widely', 'noted', 'bit', 'light', 'several', 'design', 'French', 'pony', 'bridge', 'breathe', 'die', 'make', 'knife', 'wool', 'hundred', 'I', 'California', 'lying', 'tell', 'ask', 'no', 'gulf', 'pilot', 'hit', 'smaller', 'travel', 'arm', 'cent', 'unknown', 'thought', 'keep', 'struggle', 'yellow', 'faster', 'directly', 'declared', 'firm', 'pen', 'Roman', 'share', 'flag', 'wild', 'practice', 'glass', 'per', 'notice', 'gone', 'full', 'exercise', 'simple', 'tide', 'smallest', 'rocket', 'seen', 'sides', 'expression', 'crowd', 'folks', 'dog', 'St.', 'gravity', 'nails', 'dark', 'Japan', 'possible', 'ball', 'toward', 'guard', 'supper', 'sense', 'printed', 'wonderful', 'paid', 'Indian', 'hope', 'cannot', 'of', 'steam', 'anyway', 'church', 'rhythm', 'luck', 'I\'m', 'useful', 'accurate', 'swing', 'what', 'region', 'again', 'earth', 'that', 'depend', 'enjoy', 'age', 'saved', 'dead', 'story', 'border', 'television', 'kitchen', 'motor', 'right', 'equal', 'smooth', 'essential', 'product', 'Lee', 'development', 'alike', 'lost', 'act', 'warm', 'even', 'occasionally', 'wish', 'best', 'surprise', 'range', 'production', 'we', 'carried', 'poet', 'were', 'hold', 'made', 'layers', 'wealth', 'single', 'suit', 'chart', 'before', 'my', 'pan', 'colony', 'organized', 'sharp', 'bend', 'pink', 'discussion', 'beside', 'Billy', 'more', 'Mark', 'merely', 'against', 'discuss', 'least', 'moving', 'page', 'crop', 'leather', 'between', 'broken', 'same', 'congress', 'atom', 'pole', 'doctor', 'indicate', 'quarter', 'iron', 'saw', 'mostly', 'drop', 'lungs', 'fine', 'unless', 'temperature', 'experiment', 'bush', 'settlers', 'without', 'balloon', 'load', 'familiar', 'nobody', 'Norway', 'let', 'locate', 'Mama', 'manner', 'trip', 'nothing', 'up', 'represent', 'this', 'grandmother', 'thy', 'closer', 'has', 'forgot', 'dozen', 'hung', 'entire', 'difficulty', 'river', 'forty', 'zero', 'sink', 'finest', 'cloud', 'addition', 'tank', 'provide', 'became', 'introduced', 'night', 'high', 'question', 'musical', 'express', 'fence', 'France', 'chose', 'kept', 'tall', 'shall', 'correct', 'Chinese', 'pick', 'coat', 'you\'re', 'fall', 'support', 'cotton', 'special', 'difference', 'frighten', 'beauty', 'compound', 'audience', 'satellites', 'friendly', 'managed', 'pupil', 'what\'s', 'hole', 'strike', 'thee', 'pencil', 'strength', 'society', 'jungle', 'pine', 'teeth', 'size', 'cloth', 'Washington', 'anything', 'golden', 'come', 'solve', 'clean', 'record', 'fell', 'loud', 'food', 'roof', 'queen', 'moon', 'comfortable', 'income', 'child', 'States', 'inside', 'person', 'stood', 'joy', 'rocky', 'chest', 'behind', 'fair', 'weight', 'choose', 'think', 'giant', 'swim', 'danger', 'eye', 'are', 'magnet', 'running', 'Chicago', 'kill', 'composed', 'flight', 'death', 'cookies', 'slip', 'purple', 'mainly', 'material', 'western', 'west', 'shape', 'leaf', 'final', 'bark', 'castle', 'frame', 'rose', 'song', 'Thomas', 'observe', 'face', 'butter', 'service', 'tomorrow', 'independent', 'pull', 'buy', 'pressure', 'William', 'command', 'gather', 'coach', 'he\'d', 'six', 'University', 'kids', 'tail', 'pie', 'thirty', 'simplest', 'Papa', 'physical', 'will', 'its', 'vegetable', 'wagon', 'wheat', 'unit', 'article', 'grade', 'bow', 'March', 'strange', 'Pole', 'tightly', 'flew', 'whatever', 'told', 'apartment', 'soft', 'fur', 'have', 'rich', 'establish', 'skill', 'Asia', 'secret', 'seldom', 'thousand', 'weigh', 'teach', 'effort', 'with', 'southern', 'judge', 'various', 'ants', 'pleasant', 'thick', 'tool', 'swept', 'if', 'wood', 'wait', 'title', 'not', 'shelf', 'freedom', 'from', 'flow', 'build', 'acres', 'hunter', 'sky', 'degree', 'dig', 'wise', 'Dick', 'sick', 'bright', 'soap', 'large', 'red', 'courage', 'tape', 'teacher', 'look', 'orange', 'serious', 'world', 'young', 'shake', 'Martin', 'standard', 'scientific', 'brother', 'depth', 'foreign', 'sugar', 'reach', 'touch', 'valuable', 'mud', 'certainly', 'happy', 'rapidly', 'mix', 'Louis', 'house', 'start', 'corner', 'catch', 'flame', 'aloud', 'agree', 'carry', 'important', 'bread', 'off', 'tin', 'recently', 'explore', 'James', 'ready', 'drew', 'primitive', 'they', 'grew', 'he', 'shut', 'social', 'price', 'almost', 'tent', 'reader', 'history', 'replace', 'summer', 'short', 'tried', 'circle', 'jar', 'meet', 'every', 'facing', 'topic', 'swung', 'pain', 'basic', 'enemy', 'beginning', 'stopped', 'push', 'shot', 'symbol', 'whose', 'both', 'eager', 'noun', 'swimming', 'there\'s', 'recent', 'clothes', 'poetry', 'explanation', 'flies', 'there', 'real', 'becoming', 'community', 'within', 'pretty', 'milk', 'exact', 'blind', 'cage', 'mirror', 'divide', 'Richard', 'replied', 'sheet', 'stage', 'review', 'spider', 'fill', 'rising', 'bowl', 'flat', 'battle', 'Miss', 'nice', 'political', 'motion', 'memory', 'composition', 'Columbus', 'brown', 'circus', 'mission', 'center', 'bite', 'Australia', 'wet', 'area', 'hair', 'pound', 'putting', 'till', 'tone', 'old', 'listen', 'out', 'tune', 'cut', 'nodded', 'nation', 'larger', 'voice', 'everybody', 'public', 'an', 'personal', 'earn', 'wash', 'invented', 'did', 'breakfast', 'way', 'hungry', 'feature', 'evening', 'bank', 'importance', 'due', 'step', 'organization', 'protection', 'pipe', 'dangerous', 'Aunt', 'thing', 'character', 'factor', 'needs', 'China', 'cowboy', 'toy', 'chamber', 'negative', 'silent', 'college', 'usual', 'steep', 'Andy', 'sale', 'realize', 'daughter', 'wheel', 'point', 'select', 'bring', 'remain', 'leaving', 'massage', 'frog', 'whistle', 'actual', 'cause', 'writer', 'engine', 'ride', 'applied', 'affect', 'spirit', 'hurry', 'exclaimed', 'settle', 'gradually', 'increase', 'leave', 'sea', 'particularly', 'few', 'roar', 'dream', 'hello', 'stronger', 'eaten', 'raw', 'machinery', 'jump', 'mill', 'scientist', 'Jimmy', 'ground', 'slowly', 'gold', 'run', 'fewer', 'slope', 'extra', 'frequently', 'attack', 'country', 'mistake', 'David', 'room', 'twice', 'choice', 'Autumn', 'case', 'exciting', 'shallow', 'curve', 'cave', 'loss', 'rate', 'Alice', 'cheese', 'village', 'explain', 'Edward', 'indeed', 'throughout', 'done', 'rock', 'we\'ll', 'tropical', 'bet', 'operation', 'recognize', 'breath', 'Maria', 'crack', 'just', 'rule', 'time', 'Ben', 'street', 'port', 'cake', 'thumb', 'prepare', 'Italian', 'highway', 'struck', 'saddle', 'changing', 'plain', 'voyage', 'body', 'Italy', 'in', 'zoo', 'transportation', 'nearly', 'cool', 'nearest', 'contain', 'Mississippi', 'newspaper', 'path', 'own', 'leg', 'sum', 'impossible', 'breeze', 'planned', 'equator', 'bottom', 'star', 'figure', 'key', 'shade', 'progress', 'Ellen', 'peace', 'Tim', 'she', 'ship', 'eight', 'Sam', 'tribe', 'heat', 'lose', 'surface', 'got', 'major', 'highest', 'seeing', 'hurried', 'plural', 'broad', 'TV', 'maybe', 'twenty', 'feed', 'chemical', 'don\'t', 'husband', 'solid', 'though', 'strong', 'plate', 'German', 'properly', 'greatest', 'theory', 'leader', 'sweet', 'either', 'green', 'Joe', 'verb', 'enter', 'most', 'position', 'central', 'fog', 'already', 'coal', 'loose', 'October', 'team', 'library', 'careful', 'passage', 'upper', 'trouble', 'two', 'couple', 'through', 'went', 'disappear', 'parallel', 'sat', 'you\'d', 'youth', 'lie', 'pocket', 'free', 'root', 'fox', 'available', 'environment', 'thus', 'suppose', 'welcome', 'excellent', 'headed', 'it', 'typical', 'molecular', 'dance', 'Dutch', 'promised', 'answer', 'fairly', 'construction', 'finish', 'appearance', 'rise', 'law', 'level', 'definition', 'John', 'duck', 'once', 'vote', 'carbon', 'soon', 'deer', 'coast', 'industry', 'dried', 'lunch', 'save', 'smell', 'London', 'perfect', 'stranger', 'variety', 'send', 'oil', 'steady', 'poem', 'related', 'back', 'card', 'outline', 'practical', 'automobile', 'Russia', 'throat', 'Mrs.', 'snow', 'private', 'straight', 'brief', 'begun', 'left', 'but', 'enough', 'hall', 'bare', 'sang', 'row', 'education', 'state', 'combination', 'began', 'pitch', 'giving', 'deeply', 'fighting', 'Jeff', 'tales', 'action', 'class', 'taught', 'weren\'t', 'opposite', 'and', 'sheep', 'dug', 'obtain', 'or', 'office', 'slow', 'south', 'become', 'take', 'shadow', 'pass', 'somehow', 'plates', 'say', 'married', 'Wilson', 'me', 'empty', 'climb', 'slabs', 'distant', 'finally', 'stomach', 'isn\'t', 'yet', 'about', 'Tom', 'anywhere', 'liquid', 'was', 'interest', 'sad', 'stick', 'thou', 'easy', 'us', 'spoken', 'trail', 'drove', 'tower', 'canal', 'ancient', 'atmosphere', 'separate', 'duty', 'require', 'connected', 'anyone', 'strip', 'United', 'shaking', 'so', 'since', 'past', 'Spain', 'shine', 'perhaps', 'use', 'poor', 'hunt', 'four', 'grass', 'label', 'attempt', 'you\'ve', 'father', 'myself', 'sold', 'Betsy', 'baseball', 'whenever', 'known', 'yard', 'naturally', 'another', 'worker', 'fed', 'shop', 'dot', 'serve', 'Mr.', 'needle', 'news', 'being', 'read', 'visit', 'common', 'badly', 'silence', 'bone', 'pour', 'later', 'sister', 'slight', 'concerned', 'cook', 'cross', 'spring', 'alive', 'near', 'certain', 'line', 'be', 'Mount', 'stiff', 'sing', 'arrange', 'coffee', 'Lincoln', 'money', 'studying', 'fort', 'thrown', 'grabbed', 'cup', 'avoid', 'aid', 'call', 'proud', 'camera', 'active', 'term', 'fight', 'ill', 'exactly', 'won', 'plastic', 'native', 'tree', 'fix', 'science', 'bent', 'discovery', 'previous', 'jet', 'forth', 'quite', 'seed', 'man', 'neighborhood', 'having', 'crew', 'bound', 'store', 'break', 'change', 'how', 'characteristic', 'Bay', 'shore', 'ago', 'garden', 'laugh', 'rest', 'could', 'fear', 'her', 'floating', 'rod', 'sure', 'hand', 'sand', 'neck', 'week', 'appropriate', 'national', 'guess', 'forest', 'open', 'quick', 'current', 'damage', 'aware', 'buried', 'contrast', 'prove', 'allow', 'America', 'silk', 'yesterday', 'chapter', 'cabin', 'tonight', 'blood', 'Atlantic', 'business', 'tax', 'student', 'metal', 'except', 'heart', 'trade', 'worry', 'pair', 'pool', 'taste', 'bean', 'fire', 'somewhere', 'too', 'main', 'see', 'opinion', 'happened', 'selection', 'year', 'kind', 'King', 'deal', 'seven', 'one', 'oldest', 'alphabet', 'popular', 'surrounded', 'funny', 'hollow', 'you\'ll', 'nose', 'last', 'field', 'led', 'accident', 'itself', 'sell', 'Peter', 'which', 'stems', 'during', 'brave', 'forgotten', 'do', 'ordinary', 'similar', 'brought', 'press', 'trick', 'machine', 'century', 'horse', 'football', 'second', 'smoke', 'able', 'chair', 'number', 'willing', 'source', 'sunlight', 'building', 'ruler', 'cow', 'troops', 'gently', 'mark', 'blow', 'plant', 'afternoon', 'system', 'talk', 'mail', 'day', 'jack', 'average', 'fastened', 'by', 'block', 'pay', 'driven', 'order', 'military', 'customs', 'telephone', 'get', 'ate', 'quietly', 'statement', 'accept', 'sight', 'harbor', 'powerful', 'little', 'forward', 'famous', 'failed', 'treated', 'wing', 'ability', 'ourselves', 'equipment', 'grain', 'play', 'carefully', 'scene', 'cap', 'stock', 'fifteen', 'Texas', 'biggest', 'market', 'including', 'we\'ve', 'slide', 'fellow', 'love', 'paint', 'stairs', 'ring', 'piece', 'hospital', 'however', 'universe', 'fuel', 'door', 'aboard', 'took', 'tie', 'partly', 'very', 'bar', 'planning', 'scared', 'population', 'pack', 'period', 'vertical', 'stand', 'like', 'India', 'noise', 'Robert', 'on', 'still', 'laid', 'rough', 'seems', 'arrive', 'Mars', 'picture', 'hidden', 'third', 'Ohio', 'asleep', 'element', 'arrow', 'claws', 'January', 'clothing', 'mixture', 'built', 'earlier', 'word', 'live', 'Sir', 'else', 'compare', 'dear', 'pig', 'sleep', 'wore', 'company', 'mental', 'handsome', 'tea', 'game', 'next', 'different', 'am', 'grow', 'terrible', 'pale', 'rain', 'image', 'floor', 'original', 'handle', 'vast', 'disease', 'around', 'lead', 'harder', 'new', 'stared', 'he\'s', 'task', 'art', 'breathing', 'classroom', 'excitement', 'weather', 'globe', 'prize', 'greatly', 'may', 'mad', 'Philadelphia', 'other', 'general', 'owner', 'account', 'only', 'upward', 'angle', 'instance', 'driving', 'further', 'split', 'form', 'determine', 'bee', 'does', 'Sunday', 'grandfather', 'late', 'Saturday', 'family', 'bicycle', 'turn', 'Eddy', 'furniture', 'wonder', 'Rome', 'hang', 'life', 'Daniel', 'dollar', 'watch', 'gun', 'desert', 'know', 'elephant', 'force', 'hide', 'together', 'officer', 'happen', 'Greece', 'close', 'aren\'t', 'desk', 'worse', 'corn', 'thank', 'suggest', 'mountain', 'refer', 'uncle', 'attention', 'any', 'ocean', 'process', 'principal', 'I\'ll', 'sun', 'stuck', 'those', 'Carlos', 'minerals', 'yourself', 'direction', 'individual', 'Pacific', 'garage', 'music', 'respect', 'hay', 'coming', 'language', 'syllable', 'people', 'forget', 'court', 'buffalo', 'vowel', 'somebody', 'three', 'speak', 'list', 'piano', 'wire', 'basket', 'wrote', 'muscle', 'birds', 'union', 'include', 'branch', 'examine', 'England', 'chicken', 'direct', 'simply', 'daily', 'correctly', 'policeman', 'place', 'studied', 'imagine', 'younger', 'package', 'particular', 'perfectly', 'using', 'curious', 'Russian', 'Henry', 'stepped', 'plus', 'paper', 'cream', 'win', 'throw', 'land', 'half', 'first', 'club', 'president', 'plane', 'diameter', 'air', 'drink', 'date', 'skin', 'himself', 'driver', 'far', 'lips', 'barn', 'remember', 'ice', 'herd', 'screen', 'safety', 'evidence', 'away', 'continent', 'wide', 'cost', 'island', 'identity', 'tip', 'school', 'religious', 'mice', 'children', 'underline', 'Alaska', 'produce', 'pure', 'anybody', 'Casey', 'Danny', 'noon', 'lack', 'apple', 'afraid', 'dinner', 'slipped', 'blew', 'girl', 'belt', 'sent', 'create', 'object', 'slightly', 'salmon', 'roll', 'warn', 'gray', 'helpful', 'want', 'also', 'hat', 'find', 'ever', 'been', 'tube', 'middle', 'sit', 'example', 'lucky', 'angry', 'monkey', 'Africa', 'visitor', 'develop', 'he\'ll', 'table', 'rubbed', 'army', 'thread', 'control', 'him', 'New York', 'today', 'beat', 'cell', 'ear', 'doll', 'sometime', 'setting', 'necessary', 'name', 'British', 'Germany', 'Mary', 'front', 'speed', 'consider', 'sound', 'modern', 'bigger', 'quickly', 'slave', 'pond', 'move', 'generally', 'meal', 'hour', 'track', 'dull', 'older', 'ahead', 'stream', 'cattle', 'chance', 'phrase', 'natural', 'meat', 'relationship', 'section', 'mile', 'spell', 'solar', 'men', 'salt', 'vapor', 'consonant', 'Jones', 'then', 'wrapped', 'regular', 'rush', 'meant', 'likely', 'wear', 'the', 'gentle', 'sort', 'white', 'good', 'donkey', 'double', 'missing', 'worried', 'eat', 'dry', 'instant', 'whole', 'rather', 'morning', 'color', 'shelter', 'movie', 'lion', 'map', 'total', 'attached', 'climate', 'winter', 'burn', 'care', 'walk', 'spent', 'black', 'truth', 'drawn', 'fourth', 'chosen', 'advice', 'our', 'foot', 'rubber', 'volume', 'water', 'yes', 'paragraph', 'nor', 'parts', 'traffic', 'didn\'t', 'rice', 'horn', 'cry', 'at', 'police', 'making', 'mood', 'brush', 'additional', 'method', 'movement', 'among', 'softly', 'animal', 'wooden', 'behavior', 'equally', 'Harry', 'great', 'haven\'t', 'positive', 'immediately', 'some', 'mouth', 'top', 'melted', 'charge', 'fat', 'Europe', 'clock', 'whether', 'believed', 'dirt', 'apart', 'Mike', 'escape', 'lamp', 'cast', 'knew', 'gift', 'oxygen', 'longer', 'fast', 'guide', 'Canada', 'Bill', 'stone', 'recall', 'everything', 'follow', 'discover', 'suddenly', 'film', 'satisfied', 'copper', 'problem', 'column', 'log', 'possibly', 'model', 'although', 'fly', 'shown', 'type', 'sudden', 'darkness', 'shinning', 'Don', 'couldn\'t', 'pattern', 'Ann', 'long', 'course', 'conversation', 'than', 'differ', 'etc.', 'sail', 'finger', 'flower', 'Johnny', 'blank', 'group', 'mysterious', 'go', 'percent', 'wife', 'opportunity', 'rope', 'written', 'difficult', 'nature', 'dirty', 'met', 'supply', 'bill', 'route', 'vessels', 'aside', 'offer', 'gate', 'fish', 'birth', 'road', 'labor', 'stove', 'bell', 'refused', 'glad', 'activity', 'fierce', 'neighbor', 'exist', 'eventually', 'show', 'condition', 'beautiful', 'nearby', 'Sally', 'health', 'adventure', 'sign', 'brass', 'edge', 'quiet', 'engineer', 'race', 'shoulder', 'whom', 'birthday', 'potatoes', 'we\'re', 'party', 'nest', 'Mexico', 'gasoline', 'Greek', 'Bob', 'July', 'largest', 'solution', 'proper', 'present', 'shout', 'stay', 'usually', 'sitting', 'had', 'situation', 'basis', 'lift', 'happily', 'busy', 'gas', 'honor', 'copy', 'goes', 'many', 'bag', 'closely', 'division', 'spite', 'successful', 'valley', 'plan', 'nervous', 'fun', 'knowledge', 'won\'t', 'caught', 'dust', 'spin', 'Pennsylvania', 'came', 'felt', 'park', 'fifth', 'here', 'none', 'doesn\'t', 'influence', 'actually', 'reason', 'program', 'they\'re', 'belong', 'would', 'numeral', 'experience', 'plenty', 'across', 'space', 'bus', 'receive', 'these', 'greater', 'moment', 'beyond', 'spend', 'mouse', 'steel', 'why', 'above', 'after', 'part', 'tobacco', 'them', 'Johnson', 'journey', 'industrial', 'Paris', 'Fred', 'arrangement', 'city', 'atomic', 'trunk', 'north', 'lesson', 'mine', 'as', 'your', 'doing', 'adult', 'hill', 'capital', 'wall', 'return', 'band', 'tears', 'each', 'shoot', 'prevent', 'where', 'friend', 'five', 'pride', 'worth', 'Illinois', 'box', 'hearing', 'write', 'Christmas', 'Dad', 'power', 'let\'s', 'end', 'diagram', 'shells', 'smile', 'give', 'lower', 'ten', 'boat', 'result', 'entirely', 'fresh', 'living', 'announced', 'women', 'everyone', 'something', 'sets', 'town', 'wolf', 'born', 'excited', 'consist', 'victory', 'join', 'decide', 'dawn', 'magic', 'herself', 'lay', 'mind', 'ranch', 'wherever', 'when', 'farther', 'shirt', 'hot', 'palace', 'I\'ve', 'might', 'square', 'height', 'Dan', 'June', 'rear', 'safe', 'citizen', 'dropped', 'wrong', 'inch', 'heavy', 'can\'t', 'rays', 'work', 'because', 'cover', 'report', 'Frank', 'constantly', 'help', 'early', 'everywhere', 'farm', 'principle', 'probably', 'growth', 'getting', 'below', 'government', 'well', 'May', 'species', 'function', 'continued', 'rabbit', 'storm', 'spread', 'joined', 'balance', 'heard', 'raise', 'powder', 'understanding', 'hardly', 'month', 'future', 'tiny', 'according', 'subject', 'along', 'that\'s', 'unhappy', 'location', 'length', 'try', 'waste', 'heading', 'train', 'doubt', 'base', 'feel', 'feathers', 'factory', 'April', 'home', 'draw', 'under', 'describe', 'energy', 'fought', 'round', 'must', 'straw', 'needed', 'August', 'Jim', 'book', 'farmer', 'whispered', 'distance', 'gave', 'learn', 'thin', 'signal', 'broke', 'former', 'wouldn\'t', 'grown', 'pleasure', 'research', 'detail', 'seat', 'count', 'fruit', 'all', 'torn', 'easily', 'instrument', 'now', 'Florida', 'improve'];
    const wordsListLength = wordsList.length;
    
    const getRandomWord = () => wordsList[randomInteger(0, wordsListLength - 1)];
    const capitalizeFirstLetter = string => string.charAt(0).toUpperCase() + string.slice(1);
    
    let text = '';
    let wordsInSentence = randomInteger(3, 13);
    let wordPositionInSentence = 0;
    
    for (let i = 0; i < n; i++) {
      
      wordPositionInSentence++;
      
      // Appends a new word
      text += wordPositionInSentence > 1 ? getRandomWord() : capitalizeFirstLetter(getRandomWord());
      
      // If end of sentence
      if (wordsInSentence === wordPositionInSentence) {
        wordsInSentence = randomInteger(3, 12);
        wordPositionInSentence = 0;
        text += '. ';
      } 
      else text += ' ';
    }
    
    return text.slice(-2) === '. ' ? text.slice(0, -1) : text.slice(0, -1) + '.';
  }
  
  export function randomHexColor() {
    return '#' + Math.floor(Math.random() * 16777215).toString(16);
  }
  