Posts

Showing posts with the label interactive

Pseudo-Random Numbers in C

Image
Pseudo-random numbers in C Pseudo-random numbers in C: Introduction: In Ancient Greek, the adjective: ψευδής [1] . or, when transliterated: ‘pseudḗs’ means: ‘lying,’ ‘false,’ ‘fictitious,’ ‘sham’ [2] . . A classical computer is a deterministic machine, and, in and of itself, cannot generate a truly random number.  A classical computer, in and of itself, can only generate a pseudo-random number. [3] . A pseudo-random number is not a true random number – its having been g...

Hello, Cube!

Image
My first X3DOM page Hello, Cube!      Figure 1:   It is possible to script Three-dimensional objects with X3DOM.  X3DOM follows the declarative scripting paradigm of two-dimensional SVG as opposed to following the programming imperative paradigm of JavaScript and Canvas. This is my first html page that includes a three-dimensional object. X3DOM is a Javascript library that allows one to code three-dimensional objects - such as cubes, speheres, cylinders, etc. - with tags, just as SVG allows one to do with two dimensional objects - squares, circles etc. You can manipulate the below cube with your finger - should you be employing a touchscreen - or with your mouse cursor - should you be employing a desktop. Should you use two fingers on a touch-screen device, then you can scale the size of the cube in real time. Holding one's two fingers to the screen...