# [Plugin] Smart Random

### » Tue Oct 11, 2016 4:25 pm

@blackhornet thank you so much
B
13
S
3
G
1
Posts: 2
Reputation: 1,229

### » Fri Oct 28, 2016 5:52 pm

How would you do a dice in a turn-based board game with this? (#FirstRealProject) I have about 3 days.
B
4
S
1
Posts: 20
Reputation: 404

### » Fri Oct 28, 2016 6:26 pm

Do a New( 1,6,1 ), and get the value with Next.
B
71
S
22
G
288
Posts: 3,859
Reputation: 158,424

### » Fri Oct 28, 2016 6:42 pm

'Next'? (Sorry for being a baka (idiot))
B
4
S
1
Posts: 20
Reputation: 404

### » Fri Oct 28, 2016 7:04 pm

B
71
S
22
G
288
Posts: 3,859
Reputation: 158,424

### » Mon Oct 31, 2016 5:48 pm

Oooookay. Thanks! Appreciate the quick response and help!
B
4
S
1
Posts: 20
Reputation: 404

### » Wed Mar 15, 2017 3:38 pm

I have a question. How do I pick one number and randomize numbers close to it?
B
9
S
1
Posts: 9
Reputation: 445

### » Wed Mar 15, 2017 3:49 pm

http://www.blackhornettechnologies.com/Construct2Stuff/SmartRandomBaseAndRange.capx
Use the array as an offset from your base number, using the array as a range.
If your base=12, your range is 6 (or +/-3), X=Base + RND - Range/2, or 12 + RND - 3, where RND is a number between 0 and 5.
B
71
S
22
G
288
Posts: 3,859
Reputation: 158,424

### » Thu Mar 16, 2017 3:21 pm

Thanks alot! But how do I pick 3-4 numbers from the range that has been RND and display it to the text?
B
9
S
1
Posts: 9
Reputation: 445

### » Thu Mar 16, 2017 5:00 pm

Nevermind. I think I have just figured it out by myself. Thanks again !
B
9
S
1
Posts: 9
Reputation: 445

PreviousNext