EdgeAIG's picture
download
raw
505 Bytes
import * as Context from "../Context.ts"
/** @internal */
export interface Random {
nextIntUnsafe(): number
nextDoubleUnsafe(): number
}
/** @internal */
export const Random: Context.Reference<Random> = Context.Reference<Random>("effect/Random", {
defaultValue: () => ({
nextIntUnsafe() {
return Math.floor(Math.random() * (Number.MAX_SAFE_INTEGER - Number.MIN_SAFE_INTEGER + 1)) +
Number.MIN_SAFE_INTEGER
},
nextDoubleUnsafe() {
return Math.random()
}
})
})

Xet Storage Details

Size:
505 Bytes
·
Xet hash:
ae6f491f5da9f759c2d2f68396880446a37f9f8cfad250533be4fab2645d6039

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.