| Index: chrome/browser/resources/print_preview/print_preview_utils.js
|
| diff --git a/chrome/browser/resources/print_preview/print_preview_utils.js b/chrome/browser/resources/print_preview/print_preview_utils.js
|
| index 68e52243603b894dbc4cc06aec757c8bae2137f9..3b1bd2273ded75b2182cfd37a8812dab9f5699b4 100644
|
| --- a/chrome/browser/resources/print_preview/print_preview_utils.js
|
| +++ b/chrome/browser/resources/print_preview/print_preview_utils.js
|
| @@ -189,3 +189,15 @@ function pageSetToPageRanges(pageSet) {
|
| function getPageSrcURL(id, pageNumber) {
|
| return 'chrome://print/' + id + '/' + pageNumber + '/print.pdf';
|
| }
|
| +
|
| +
|
| +/**
|
| + * Returns a random integer within the specified range, |from| and |to| are
|
| + * included.
|
| + * @param {number} from Start of the range.
|
| + * @param {number} to End of the range.
|
| + * @return {number} The random integer.
|
| + */
|
| +function getRandomIntegerWithinRange(from, to) {
|
| + return Math.floor(Math.random() * (to - from + 1) + from);
|
| +}
|
|
|