Tags » Programming

Random Things

Life is (semi?) random. Let’s emulate it in my program…

#include <stdio.h>
#include <stdlib.h>

int main(void) {

    int n;
    srand(time(NULL));  /* randomize seed  otherwise
                           rand() generates
                           the same number */
    n = rand() % 48;    /* numbers between 1 - 47 */
    printf("%d\n", n);

    return 0;
}

Programming

The Story of X

Okay. We know that we need to get better in logic. This happens in many ways.   One is to understand the complete picture of the problem we are working. 343 more words

General Discussions

Java 9 Modularity: O'Reilly Early Access Release


Java 9 Modularity: O’Reilly Early Access Release
http://ift.tt/2bDiQcj

Submitted August 30, 2016 at 01:19AM by sammy8306
via reddit http://ift.tt/2bMD05c

Reddit

Browsers are broken, but nobody cares. All it took was 1 line of code to fix it.


Browsers are broken, but nobody cares. All it took was 1 line of code to fix it.
http://ift.tt/2c4HVwc

Submitted August 30, 2016 at 01:39AM by mariome123… 7 more words

Reddit

Minimal Value Types Proposal for Java


Minimal Value Types Proposal for Java
http://ift.tt/2byferT

Submitted August 30, 2016 at 01:40AM by alexeyr
via reddit http://ift.tt/2c4GONn

Reddit

Learning C++ on OSX - should I stick with XCode, dual boot, or use a VM? via /r/learnprogramming


Learning C++ on OSX – should I stick with XCode, dual boot, or use a VM?

I'm a web developer who would like to learn C++ for the purpose for general learning and game dev. 94 more words