Skip to content
This repository has been archived by the owner on Jun 1, 2021. It is now read-only.

An implementation of the Microsoft C Runtime rand() pseudorandom number generator (PRNG) function. The range is [0,32767].

License

Notifications You must be signed in to change notification settings

jqnpm/jq-random-prng-microsoft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jqnpm logotype, a Penrose triangle

An implementation of the Microsoft C Runtime rand() pseudorandom number generator (PRNG) function. The range is [0,32767].

⚠️ This project has been archived

No future updates are planned. Feel free to continue using it, but expect no support.

This is a package for the command-line JSON processor jq. Install the package in your jq project/package directory with jqnpm:

jqnpm install joelpurra/jq-random-prng-microsoft

Usage

import "joelpurra/jq-random-prng-microsoft" as RandomPrngMicrosoft;

# RandomPrngMicrosoft::rand(seed; n)
RandomPrngMicrosoft::rand(1;5)		# 41, 18467, 6334, 26500, 19169

# RandomPrngMicrosoft::RAND_MAX
RandomPrngMicrosoft::RAND_MAX		# 32767

License

Copyright (c) 2014, 2015 Peter Koppstein https://github.com/pkoppstein and Joel Purra https://joelpurra.com/ All rights reserved.

When using jq-random-prng-microsoft, comply to the MIT license. Please see the LICENSE file for details.

About

An implementation of the Microsoft C Runtime rand() pseudorandom number generator (PRNG) function. The range is [0,32767].

Resources

License

Stars

Watchers

Forks

Packages

No packages published