Skip to main content

@psych/lib@1.24.0
Built and signed on GitHub Actions

A TypeScript library for math, statistics, and data analysis. Featured in psychological and educational research.

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
3 weeks ago (1.24.0)
function randomT
randomT(df: number): number

Generate a random number from a t distribution

从 t 分布中生成一个随机数

Parameters

degree of freedom

Return Type

random number from a t distribution

Add Package

deno add jsr:@psych/lib

Import symbol

import { randomT } from "@psych/lib";

---- OR ----

Import directly with a jsr specifier

import { randomT } from "jsr:@psych/lib";

Add Package

npx jsr add @psych/lib

Import symbol

import { randomT } from "@psych/lib";

Add Package

yarn dlx jsr add @psych/lib

Import symbol

import { randomT } from "@psych/lib";

Add Package

pnpm dlx jsr add @psych/lib

Import symbol

import { randomT } from "@psych/lib";

Add Package

bunx jsr add @psych/lib

Import symbol

import { randomT } from "@psych/lib";