Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

RanNumGen

A Random Number Generator written in Assembly

ran_num_gen

About The Project

This is a random number generator written in MASM x86 Assembly language. Three global variables can be set to determine how many random numbers will be generated, and in what range those numbers will be generated. The program then sorts all of the generated numbers in non-descending order and also provides the median of the numbers.

(back to top)

Getting Started

This is a small and simple program but environments that run MASM can be rare. The options are usually limited to the Visual Studio IDE or to a third-party app/webapp that runs assembly (usually using Wine to simulate a Windows Command Prompt). Both of these options are discussed below.


Running with Visual Studio

Note that different versions/years of Visual Studio will have different requirements for running MASM x86. Describing how to fully setup MASM on Visual Studio is beyond the scope of this ReadMe, but sources will be provided below as to how to get started with this in Visual Studio 2017. Note that the Irvine Library is required to run the program.

MASM & Irvine on VS 2017

MASM setup guide for VS 2017

In order to use the program, please clone the repo or simply copy the sole .asm file:

 git clone https://github.com/UreshiiPanda/RanNumGen.git

Running with a MASM Windows Editor/Emulator

Luckily, istareatscreens has built a portable MASM editor, complete with everything needed to run the program, including the Irvine Library. Note that there is also a web version available on the repo (below). Simply remove the "INCLUDE Irvine32.inc" line from this repo's code and paste it in the editor. Note that you must click on the Wine window in order to initiate user input into Command Prompt.

MASM Editor/Emulator

(back to top)

About

Random Number Generator written in Assembly

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages