blob: 2f7c89fceb4dd23a82ca14e285e61d2c3ce20929 [file] [log] [blame]
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <emscripten.h>
int main()
{
srand(time(NULL));
printf("hello: a random string: %s, an integer: %d, a float: %f. Time now: %f\n",
emscripten_random() > 0.5 ? "test" : "test2",
rand(),
emscripten_random(),
emscripten_get_now());
}