Skip to content

Commit

Permalink
Revert commits wrt to "closed compounds" comment
Browse files Browse the repository at this point in the history
  • Loading branch information
markmontymark committed Jun 24, 2014
1 parent 04c8944 commit d794529
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion authors-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ A typical cookbook page will have three sections (four if you count the title):

## Copyright Issues

Do not post code that is copyrighted by another user, unless you have permission to use that code AND to re-license that code under the [CC BY 3.0](/license) license. If you DO have permission and the author would like credit, please add them to the [authors](/authors) page.
Do not post code that is copyrighted by another user, unless you have permission to use that code AND to relicense that code under the [CC BY 3.0](/license) license. If you DO have permission and the author would like credit, please add them to the [authors](/authors) page.

Also, just a stylistic note, please do not yank code directly from [http://coffeescript.org/](http://coffeescript.org/) and post it with little or no discussion. The CoffeeScript Cookbook is not affiliated with them. We think they're awesome and want them to like us, too! Make sure that anything taken from [http://coffeescript.org/](http://coffeescript.org/) is permissible use and that it stands alone as a valid recipe. If the recipe is too terse, consider adding more examples and discussion.

Expand Down
2 changes: 1 addition & 1 deletion chapters/math/generating-predictable-random-numbers.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class Rand

## Discussion

JavaScript and CoffeeScript do not provide a seed-able random number generator. Writing your own will be an exercise in trading off the amount of randomness with the simplicity of the generator. A full discussion of randomness is beyond the scope of this cookbook; for further reading consult Donald Knuth's _The Art of Computer Programming_, Volume II, Chapter 3, "Random Numbers", and _Numerical Recipes in C_, 2nd Edition, Chapter 7, "Random Numbers".
JavaScript and CoffeeScript do not provide a seedable random number generator. Writing your own will be an exercise in trading off the amount of randomness with the simplicity of the generator. A full discussion of randomness is beyond the scope of this cookbook; for further reading consult Donald Knuth's _The Art of Computer Programming_, Volume II, Chapter 3, "Random Numbers", and _Numerical Recipes in C_, 2nd Edition, Chapter 7, "Random Numbers".

A brief explanation of this random number generator is in order, however. It is a Linear Congruential Pseudorandom Number Generator. LCPRNG's operate on the mathematical formula `I<sub>j+1</sub> = (aI<sub>j</sub>+c) % m`, where a is the multiplier, c is the addition offset, and m is the modulus.
Each time a random number is requested, a very large multiplication and addition are performed -- "very large" relative to the key space -- and the resulting number is modulused back down into the keyspace.
Expand Down
4 changes: 2 additions & 2 deletions developers-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ bundle install
#### Install pygments

You'll need python installed for this.
Macs and most Linuces come with it pre-installed.
Macs and most Linuces come with it preinstalled.

{% highlight bash %}
easy_install pygments # for syntax highlighting
Expand All @@ -55,7 +55,7 @@ foreman start
{% endhighlight %}

Leave this window running while you work.
Any time you change a file, jekyll will re-render it into the `_site` folder.
Any time you change a file, jekyll will rerender it into the `_site` folder.

Open a browser and visit <http://localhost:4000/> and you should see the site.

Expand Down

0 comments on commit d794529

Please sign in to comment.