Consider a list of strings you need to permanently assign a random color.
First you should turn the string into a hash.
var string = "string"
var hash = 0
/usr/share/zoneinfo/Hongkong | |
> Wed Jan 01 2014 00:00:00 GMT+0800 (HKT) | |
> Mon Sep 01 2014 00:00:00 GMT+0800 (HKT) | |
/usr/share/zoneinfo/Pacific/Easter | |
> Wed Jan 01 2014 00:00:00 GMT-0500 (EASST) | |
> Mon Sep 01 2014 00:00:00 GMT-0600 (EAST) | |
/usr/share/zoneinfo/Pacific/Norfolk | |
> Wed Jan 01 2014 00:00:00 GMT+1130 (NFT) |
/* | |
** | |
** Example of Interprocess communication in Node.js through a UNIX domain socket | |
** | |
** Usage: | |
** server> MODE=server node ipc.example.js | |
** client> MODE=client node ipc.example.js | |
** | |
*/ |