Searched hist:d129c68a14d852e62e1ddcc3bcfe4e11761e2256 (Results 1 – 2 of 2) sorted by relevance
/freebsd/usr.bin/jot/ |
H A D | jot.1 | diff d129c68a14d852e62e1ddcc3bcfe4e11761e2256 Mon Nov 06 14:55:11 CET 2006 Diomidis Spinellis <dds@FreeBSD.org> Do What I Mean when the user asks for random integers or characters. Up to now jot would fail to generate the last character in the range or skew the integer distribution in a way that would generate the numbers in the range's limits with half the probability of the rest.
This modification fixes the program, rather than documenting the strange behavior, as suggested in docs/54879.
Also, correctly specify the range of random(3).
PR: docs/54879 MFC after: 2 weeks diff d129c68a14d852e62e1ddcc3bcfe4e11761e2256 Mon Nov 06 14:55:11 CET 2006 Diomidis Spinellis <dds@FreeBSD.org> Do What I Mean when the user asks for random integers or characters. Up to now jot would fail to generate the last character in the range or skew the integer distribution in a way that would generate the numbers in the range's limits with half the probability of the rest.
This modification fixes the program, rather than documenting the strange behavior, as suggested in docs/54879.
Also, correctly specify the range of random(3).
PR: docs/54879 MFC after: 2 weeks
|
H A D | jot.c | diff d129c68a14d852e62e1ddcc3bcfe4e11761e2256 Mon Nov 06 14:55:11 CET 2006 Diomidis Spinellis <dds@FreeBSD.org> Do What I Mean when the user asks for random integers or characters. Up to now jot would fail to generate the last character in the range or skew the integer distribution in a way that would generate the numbers in the range's limits with half the probability of the rest.
This modification fixes the program, rather than documenting the strange behavior, as suggested in docs/54879.
Also, correctly specify the range of random(3).
PR: docs/54879 MFC after: 2 weeks diff d129c68a14d852e62e1ddcc3bcfe4e11761e2256 Mon Nov 06 14:55:11 CET 2006 Diomidis Spinellis <dds@FreeBSD.org> Do What I Mean when the user asks for random integers or characters. Up to now jot would fail to generate the last character in the range or skew the integer distribution in a way that would generate the numbers in the range's limits with half the probability of the rest.
This modification fixes the program, rather than documenting the strange behavior, as suggested in docs/54879.
Also, correctly specify the range of random(3).
PR: docs/54879 MFC after: 2 weeks
|