export const setEach = < T > ( ... parameters ) => ( numOfVertexes ) : T [ ] => [ ... parameters ] ; export const oneToAll = ( value ) => ( numOfVertexes ) => Array ( numOfVertexes ) . fill ( value ) ; export const randomRangePerEach = ( min , max ) => ( numOfVertexes ) : number [ ] => Array ( numOfVertexes ) . fill ( 0 ) . map ( ( ) => Math . random ( ) * ( max - min ) + min ) ; export const randomRangeForAll = ( min , max ) => ( numOfVertexes ) : number [ ] => Array ( numOfVertexes ) . fill ( Math . random ( ) * ( max - min ) + min ) ;