Skip to content
This repository has been archived by the owner on Dec 5, 2018. It is now read-only.

Commit

Permalink
1.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Pomax committed Jul 9, 2016
1 parent c56342e commit 0f7f6be
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This is the compilation repository for Processing.js, used in building the `proc

# Versioning

Processing.js adheres to [semver](http://semver.org) style versioning, with the current version being 1.5.2 (released July 9th, 2016)
Processing.js adheres to [semver](http://semver.org) style versioning, with the current version being 1.5.3 (released July 9th, 2016)

# This project is currently in need of developers

Expand Down
15 changes: 13 additions & 2 deletions processing.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
module.exports={
"name": "processing-js",
"version": "1.5.1",
"version": "1.5.2",
"author": "Processing.js",
"repository": {
"type": "git",
Expand Down Expand Up @@ -6992,7 +6992,18 @@ module.exports = function withMath(p, undef) {
return internalRandomGenerator() * arguments[0];
}
var aMin = arguments[0], aMax = arguments[1];
return internalRandomGenerator() * (aMax - aMin) + aMin;
if (aMin === aMax) {
return aMin;
}
for (var i = 0; i < 100; i++) {
var ir = internalRandomGenerator();
var result = ir * (aMax - aMin) + aMin;
if (result !== aMax) {
return result;
}
// assertion: ir is never less than 0.5
}
return aMin;
};

// Pseudo-random generator
Expand Down
6 changes: 4 additions & 2 deletions processing.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0f7f6be

Please sign in to comment.