export module wordCloudUtils { export function getRandomColor ( ) { const crypto = window . crypto || ( < any > window ) . msCrypto ; const randomColorsArray = crypto . getRandomValues ( new Uint8Array ( 3 ) ) ; const red = randomColorsArray [ 0 ] , green = randomColorsArray [ 1 ] , blue = randomColorsArray [ 2 ] ; return `rgb(${ red },${ green },${ blue })` ; } }