Roberto Ierusalimschy
|
b44787652b
using 'xoroshiro128+' for PRNG
|
пре 7 година |
Roberto Ierusalimschy
|
bdd10a08b1
in 'random', uses high-order bits instead of low-order
|
пре 7 година |
Roberto Ierusalimschy
|
c5e3b2f814
in random/'project', remove the special case for "small" intervals;
|
пре 7 година |
Roberto Ierusalimschy
|
89da4168df
avoid functions named 'pack'
|
пре 7 година |
Roberto Ierusalimschy
|
6b01b6cf6a
'lu_int32' may not be 'int'
|
пре 7 година |
Roberto Ierusalimschy
|
e3388ebfad
more explicit casts when converting an integer to a random float
|
пре 7 година |
Roberto Ierusalimschy
|
dbec41f34c
random floats of different sizes get exactly needed number of random bits
|
пре 7 година |
Roberto Ierusalimschy
|
0b3db69e41
slight simplification in 'xorshift128plus'
|
пре 7 година |
Roberto Ierusalimschy
|
80ae1c1c16
fairer projection of random integers into an integer interval
|
пре 7 година |
Roberto Ierusalimschy
|
66b7b075a6
'math.random' using the xorshift128+ algorithm
|
пре 7 година |
Roberto Ierusalimschy
|
2a235312f0
detail (removing spaces at end of lines)
|
пре 8 година |
Roberto Ierusalimschy
|
9903dd52a3
Using LUAI_UAC* types more consistently on vararg calls
|
пре 8 година |
Roberto Ierusalimschy
|
dc4232379d
detail (ensure subtraction is done unsigned)
|
пре 9 година |
Roberto Ierusalimschy
|
be63d995c1
tiny bug: 'randomseed' was calling 'rand' (instead of 'l_rand')
|
пре 10 година |
Roberto Ierusalimschy
|
7d930ec694
use 'log2' when available
|
пре 10 година |
Roberto Ierusalimschy
|
1a7868c1d5
bug: 'random' limit is 2^31-1, not RAND_MAX
|
пре 10 година |
Roberto Ierusalimschy
|
17ca3b1763
cleaner test for overflow for range of 'math.random'
|
пре 10 година |
Roberto Ierusalimschy
|
28fdbcf393
added include for 'lprefix.h', for stuff that must be added before
|
пре 10 година |
Roberto Ierusalimschy
|
463edee2fd
'lua_numtointeger' -> 'lua_numbertointeger'
|
пре 10 година |
Roberto Ierusalimschy
|
65ec3379b1
added some casts for the cases when lua_Number != double
|
пре 10 година |
Roberto Ierusalimschy
|
798660c9cd
deprecated "cast macros" ('luaL_checkint', 'luaL_optint', etc.)
|
пре 10 година |
Roberto Ierusalimschy
|
925d1b59f9
new function 'math.ult' (unsigned less than)
|
пре 11 година |
Roberto Ierusalimschy
|
8bb272a3e3
new conversion float->integer: conversion is valid only when
|
пре 11 година |
Roberto Ierusalimschy
|
f14662fca6
detail (added placeholders for non-function fields to preallocate
|
пре 11 година |
Roberto Ierusalimschy
|
b9dcf9974d
detail (typos in comments)
|
пре 11 година |
Roberto Ierusalimschy
|
a77d263e86
unsigned-manipulation functions (lua_puhsunsigned, lua_tounsigned, etc.)
|
пре 11 година |
Roberto Ierusalimschy
|
e3871abe95
'math.ifloor' is back
|
пре 11 година |
Roberto Ierusalimschy
|
355037528c
'math.mof' works with integers, too
|
пре 11 година |
Roberto Ierusalimschy
|
456806f25c
no more 'math.ifloor' + new semantics for 'math.floor'/'math.ceil'
|
пре 11 година |
Roberto Ierusalimschy
|
8b66040e34
several functions deprecated (cosh, sinh, atanh, pow, frexp, ldexp)
|
пре 11 година |