Функция генерирующая случайное HEX-число (JavaScript)

function get_random_hex_value() {
    return '#' + Math.floor(Math.random() * 16777215).toString(16);

P.S.: This function generates a random hexadecimal value ;)

дядь Саша

hardcore javascript & php programmer, passionate reverse engineer

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.