Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Simple Prng

Name: Anonymous 2014-05-13 1:00


// uses/requires a seed between 0 & 1
// returns values in range -1 to +1
function randout = sprng(n, seed, offset = 10)
randout = sin( ([1:n] .+ (offset + seed)) .^ 2.0 );
endfunction;

Name: Anonymous 2014-05-13 23:34

>>16
Mathematica is as worthless as lisp
MATLAB has real utility and not to mention the only IDE worth using.
It's innate ability to deal with matrices is exactly iys strong point. It makes real world simulations a snap. I rarely use MATLAB but for what it does, it does better than anything else.

In the real world, no one cares about your symbolic bullshit, we care about numerical methods

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List