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 12:41

Scilab render formulas in mathematical notation using its own Java-based rendering engine, JLaTeXMath, a fork of the JMathTeX project.
What the hell is this abomination?

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