Re: [Tinyos-help] how to get a random float number

2007-02-13 Thread Tarun Bansal
Use rand_no = random(); This would return an integral random number between 0 to RAND_MAX. So you can divide the result by RAND_MAX to get a floating number between 0 and 1 (It won't be a real floating point random number as the set of floating numbers that you get here is limited) To generate be

[Tinyos-help] how to get a random float number

2007-02-13 Thread Shen Ke
How can I get a random floating number between 0~1? ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help