Reputation: 253
Random rn = new Random();
Log.e("" , Integer.toString(rn.nextInt() % 20));
But in section logcat I see something else log
P.S. I just started learning , and don`t full understand how work in IDE
Upvotes: 2
Views: 1440
Reputation: 157
(I do not not have enough rep to comment on question).
You should see something like this:
04-22 18:25:32.446 1131-1131/com.your.app E/rand﹕ 19
When running the app, this should appear in red colour. Also make sure the search box (right of "log level" on picture) is empty and the text field next to it has "No filters".
Upvotes: 1