阅读背景:

将任意字符串转换为范围0和1中的浮点数

来源:互联网 

I'd like to convert an arbitrary string (or for easier process a string hash) to a float number between 0 and 1. The purpose is to create a function that returns a color code for a given string so the user always sees that entity in the same color that is generated from its name.I'd like to convert an arbitrary string (or for




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: