Rei Vilo 695 Posted April 15, 2017 Share Posted April 15, 2017 @Medsimo Can you provide an example of what you're looking for? Actually, I don't understand your requirements. On 13/04/2017 at 3:33 PM, Medsimo said: how can i get random numbers between (e.g : {1839765.71, 1839765.79}) ... But only move the last digit (from 1 to 8). Quote Link to post Share on other sites
Medsimo 1 Posted April 16, 2017 Share Posted April 16, 2017 Rei Vilo what i need is generate random numbers between {1839765.71, 1839765.79} but with float variable ... how can I get it ? Quote Link to post Share on other sites
Rei Vilo 695 Posted April 16, 2017 Share Posted April 16, 2017 Something like float result = (1.0 * random(1, 10) / 100.0) + 1839765.7; See http://energia.nu/reference/random/ Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.