This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class SliceExtensions | |
{ | |
public static Slice<T> ToSlice<T>(this T[] array) | |
{ | |
return new Slice<T>(array); | |
} | |
public static Slice<T> ToSlice<T>(this T[] array, int offset, int length) | |
{ | |
return new Slice<T>(array, offset, length); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Implemented pseudocode available at | |
http://en.wikipedia.org/wiki/Mersenne_twister | |
as an asm.js module to learn about asm.js | |
*/ | |
function MersenneTwister(stdlib, foreign, heap) { | |
"use asm"; |