Quantcast
Channel: The Old New Thing
Viewing all articles
Browse latest Browse all 24428

re: Diversion: Generating a random color from JavaScript

$
0
0

Just for fun I looked up the ECMAScript specification for Math.random():

-- begin quote --

15.8.2.14  random ( )

Returns a Number value with positive sign, greater than or equal to 0 but less than 1, chosen randomly or pseudo randomly with approximately uniform distribution over that range, using an implementation-dependent algorithm or strategy. This function takes no arguments.

-- end quote --


Viewing all articles
Browse latest Browse all 24428

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>