Skip to main content
100%

Gist e1458497b7415589b8b144e03e5f918d

✓ Published0🌍 Public
MMcNull
Last edited Jun 11, 2016
Created on Jun 11, 2016

This example demonstrates a JavaScript module that generates deterministic lorem ipsum text using a seeded pseudo-random number generator, with the ability to customize word counts, sentence lengths, and paragraph structure. It is implemented as an Angular factory service named `lorem`, built on top of the `angular.module` API. The code adapts the `loremIpsum` function from the knicklabs/lorem-ipsum.js library, replacing the default `Math.random` with a custom sinusoidal seed-based generator, and supports plain or HTML output formats for generating placeholder content.

AI-generated description

Similar vizzes