···11export {default as increment} from './increment.js';
22-export {default as range} from './range.js';
32export {default as random} from './random.js';
33+export {default as range} from './range.js';
44export {default as toBb26} from './to-bb26.js';
55export {default as toDecimal} from './to-decimal.js';
+4-4
source/random.ts
···11import toBb26 from './to-bb26.js';
22import toDecimal from './to-decimal.js';
3344-function randomInteger(minimum: number, maximum: number): number {
55- return Math.floor(Math.random() * (maximum - minimum + 1) + minimum);
66-}
77-84/**
95 * Produces a random string between the inclusive `lower` and `upper` bounds. If
106 * only one argument is provided, a string between `'A'` and the given string is
···25212622 return toBb26(integer);
2723}
2424+2525+function randomInteger(minimum: number, maximum: number): number {
2626+ return Math.floor(Math.random() * (maximum - minimum + 1) + minimum);
2727+}
···11import {expect, test} from 'vitest';
22+23import {increment} from '../source/index.js';
3445type TestCase = {
+1
test/random.ts
···11import {expect, test} from 'vitest';
22+23import {random, range} from '../source/index.js';
3445test('returns a valid string given only an upper bound', () => {
+1
test/range.ts
···11import {expect, test} from 'vitest';
22+23import {range} from '../source/index.js';
3445test('works with end', () => {
+1
test/to-bb26.ts
···11import {expect, test} from 'vitest';
22+23import {toBb26} from '../source/index.js';
3445type TestCase = {
+1
test/to-decimal.ts
···11import {expect, test} from 'vitest';
22+23import {toDecimal} from '../source/index.js';
3445type TestCase = {