/*
	© MATTO MATTI 2016
	http://mattomatti.com/pl/cp13
	napisane przy użyciu Visual Studio Community 2015
	2016-07-06 v 1.0
*/

#include <iostream>
#include <cstdlib>

using namespace std;

int main() {
	srand(100);
	
	// Losowanie z zakresu [0, n - 1]
	int n = 100;
	cout << rand() % n << endl;

	// Losowanie z zakresu [a, a + k - 1]
	int a = 100;
	int k = 100;
	cout << (rand() % k) + a << endl;

	system("pause");
	return 0;
}