randn

Run Settings
LanguageC++
Language Version
Run Command
#include <iostream> int main(){ int n, i, num; std::cout << "Write down the amount of time you want random numbers" << std::endl; std::cin >> n; std::cout << "Write down the amount of it can chose from" << std::endl; std::cin >> i; for(int n2 = n; n2 > 0; n2--){ num = rand()%i + 1; std::cout << num <<std::endl; } }
Editor Settings
Theme
Key bindings
Full width
Lines