UNPKG

@angular-package/testing

Version:

Jasmine unit testing wrapper with additional custom testing features.

1 lines 266 B
export class Random{number=t=>Math.floor(Math.random()*t);string=(t,r="0123456789abcdefghijklmnopqrstuvwxyz!@#$%^&*()ABCDEFGHIJKLMNOPQRSTUVWXYZ")=>{let o="";for(let n=0;n<=t;n++){const t=Math.floor(Math.random()*r.length);o+=r.substring(t,t+1)}return o.slice(0,-1)}}