export function randomIntFromInterval ( min , max ) { return Math . floor ( Math . random ( ) * ( max - min + 1 ) + min ) ; } export const hex2rgba = ( hex , alpha = 1 ) => { const [ r , g , b ] = hex . match ( /\w\w/g ) . map ( ( x ) => parseInt ( x , 16 ) ) ; return `rgba(${ r },${ g },${ b },${ alpha })` ; } ; export const placeholderOption = 'None' ;