sclang
math functions.
Binary
parseBits :: Bits a => String -> aSource
Parse a sequence of 0 and 1 characters as a BE bit sequence
parseBits "101" == 5 parseBits "00001111" == 15
SimpleNumber
exprandrng :: Floating b => b -> b -> b -> bSource
Variant of SimpleNumber.exprand
that shifts a linear (0,1)
value to an exponential distribution.
map (floor . exprandrng 10 100) [0,0.5,1] == [10,31,100]