Zainstaluj Steam
zaloguj się
|
język
简体中文 (chiński uproszczony)
繁體中文 (chiński tradycyjny)
日本語 (japoński)
한국어 (koreański)
ไทย (tajski)
български (bułgarski)
Čeština (czeski)
Dansk (duński)
Deutsch (niemiecki)
English (angielski)
Español – España (hiszpański)
Español – Latinoamérica (hiszpański latynoamerykański)
Ελληνικά (grecki)
Français (francuski)
Italiano (włoski)
Bahasa Indonesia (indonezyjski)
Magyar (węgierski)
Nederlands (niderlandzki)
Norsk (norweski)
Português (portugalski – Portugalia)
Português – Brasil (portugalski brazylijski)
Română (rumuński)
Русский (rosyjski)
Suomi (fiński)
Svenska (szwedzki)
Türkçe (turecki)
Tiếng Việt (wietnamski)
Українська (ukraiński)
Zgłoś problem z tłumaczeniem
Try asking their forums.
Need a D-20?
print convertToInteger( random() * 20 + 1 );
*I know nothing about Ur4. You'll have to search through the documentation yourself.
Anyway, if that works then great, but do try to tune your code to something more suitable for a beginner and let them figure out how to use more language constructs and libraries as needed.
Anyway, we're presuming you (op) are using C++ and Ur4 as an addon library. If it came with sample code I guarantee there is one that does random numbers. Once you can hit the compile button and also get it to run right then try to dissect it. It should be a really really tiny program no matter which programming language it was written in.
We're not using iterators anywhere; we have to deal with the std namespace regardless, but I suppose a using statement could be done; and there are no macro expansions taking place anywhere - {} is the initializer list introduced in C++11.
This is all perfectly basic and standard C++. I thought justified in assuming that Gentle OP might be somewhat familiar with syntax and semantics.